home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 4,101 to 4,200 / aol-file-protocol-4400-4101-to-4200.zip / AOLDLs / Shareware Demos / TOOTHPIK_ V3.0 Dental Office Mgr / TOTHDEMO.exe / CLEAN97.MDX (.txt) < prev    next >
dBASE Multiple Index  |  1997-05-03  |  216KB  |  7,513 lines

  1. CLEAN97
  2. HOLIDAY
  3. N730L
  4. N800L
  5. N830L
  6. N900L
  7. N930L
  8. N1000L
  9. N1030L
  10. N1100L
  11. N1130L
  12. N1200L
  13. N1230L
  14. N100L
  15. N130L
  16. N200L
  17. N230L
  18. N300L
  19. N330L
  20. N400L
  21. N430L
  22. N500L
  23. N530L
  24. N600L
  25. A_DATE
  26. HOLIDAY
  27. HOLIDAY
  28. N730L
  29. XXXXXXXXX           
  30. XXXXXXXXX           
  31. N730L
  32. N800L
  33.                     
  34.                     
  35. N800L
  36. N830L
  37.                     
  38.                     
  39. N830L
  40. N900L
  41.                     
  42.                     
  43. N900L
  44. N930L
  45.                     
  46.                     
  47. N930L
  48. N1000L
  49.                     
  50.                     
  51. N1000L
  52. N1030L
  53.                     
  54.                     
  55. N1030L
  56. N1100L
  57.                     
  58.                     
  59. N1100L
  60. N1130L
  61.                     
  62.                     
  63. N1130L
  64. N1200L
  65. XXXXXXXXX           
  66. XXXXXXXXX           
  67. N1200L
  68. N1230L
  69. XXXXXXXXX           
  70. XXXXXXXXX           
  71. N1230L
  72. N100L
  73.                     
  74.                     
  75. N100L
  76. N130L
  77.                     
  78.                     
  79. N130L
  80. N200L
  81.                     
  82.                     
  83. N200L
  84. N230L
  85.                     
  86.                     
  87. N230L
  88. N300L
  89.                     
  90.                     
  91. N300L
  92. N330L
  93.                     
  94.                     
  95. N330L
  96. N400L
  97.                     
  98.                     
  99. N400L
  100. N430L
  101.                     
  102.                     
  103. N430L
  104. N500L
  105. XXXXXXXXX           
  106. XXXXXXXXX           
  107. N500L
  108. N530L
  109. XXXXXXXXX           
  110. XXXXXXXXX           
  111. N530L
  112. N600L
  113. XXXXXXXXX           
  114. XXXXXXXXX           
  115. N600L
  116. A_DATE
  117. A_DATE
  118. E   ~
  119. E       
  120.         
  121. XXXXXXXXX           
  122. XXXXXXXXX           
  123. XXXXXXXXX           
  124. XXXXXXXXX           
  125.  FORMAT
  126.     RELEASE WINDOW W1
  127.     CLEAR TYPEAHEAD
  128.     SET ESCAPE ON 
  129.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  130.                 DBF(), MESSAGE()
  131.     ***check for number of records ...limit = 50 
  132.     n_rec = 0            &&  number of records
  133.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  134.     USE PATCHARG.DBF IN B ORDER TAG 
  135.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  136.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  137.     SELECT A    && use paymain
  138.     n_rec = RECCOUNT()
  139.     IF n_rec > 50 
  140.        ** setup aray to hold id#s to delete
  141.        DECLARE d_aray[n_rec]
  142.        i_dex =1
  143.        GO TOP 
  144.        SCAN WHILE i_dex <= (n_rec -50)
  145.           ** put id#s in aray
  146.           d_aray[i_dex] = A->CUSTNO
  147.           DELETE
  148.           i_dex = i_dex +1
  149.        ENDSCAN
  150.           i_dex =1
  151.           SELECT B       && use patcharg
  152. XXXXXXXXX           
  153. XXXXXXXXX           
  154. XXXXXXXXX           
  155. XXXXXXXXX           
  156. XXXXXXXXX           
  157. XXXXXXXXX           
  158. XXXXXXXXX           
  159. XXXXXXXXX               
  160. XXXXXXXXX           
  161. XXXXXXXXX           
  162. XXXXXXXXX           
  163. XXXXXXXXX           
  164. XXXXXXXXX           
  165. XXXXXXXXX           
  166. XXXXXXXXX           
  167. XXXXXXXXX           
  168. XXXXXXXXX           
  169. XXXXXXXXX           
  170. XXXXXXXXX           
  171. XXXXXXXXX           
  172. XXXXXXXXX           
  173. XXXXXXXXX           
  174. XXXXXXXXX           
  175. XXXXXXXXX           
  176. XXXXXXXXX           
  177. XXXXXXXXX           
  178. XXXXXXXXX           
  179. XXXXXXXXX           
  180. XXXXXXXXX           
  181. XXXXXXXXX           
  182. XXXXXXXXX            
  183. XXXXXXXXX           !
  184. XXXXXXXXX           "
  185. XXXXXXXXX           #
  186. XXXXXXXXX           $
  187. XXXXXXXXX           %
  188. XXXXXXXXX           &
  189. XXXXXXXXX           '
  190. XXXXXXXXX           (
  191. XXXXXXXXX           )
  192. XXXXXXXXX           *
  193. XXXXXXXXX           
  194. E   *
  195. XXXXXXXXX           ,
  196. XXXXXXXXX           -
  197. XXXXXXXXX           .
  198. XXXXXXXXX           /
  199. XXXXXXXXX           0
  200. XXXXXXXXX           1
  201. XXXXXXXXX           2
  202. XXXXXXXXX           3
  203. XXXXXXXXX           4
  204. XXXXXXXXX           5
  205. XXXXXXXXX           6
  206. XXXXXXXXX           7
  207. XXXXXXXXX           8
  208. XXXXXXXXX           9
  209. XXXXXXXXX           :
  210. XXXXXXXXX           ;
  211. XXXXXXXXX           <
  212. XXXXXXXXX           =
  213. XXXXXXXXX           >
  214. XXXXXXXXX           ?
  215. XXXXXXXXX           @
  216. XXXXXXXXX           A
  217. XXXXXXXXX           B
  218. XXXXXXXXX           C
  219. XXXXXXXXX           D
  220. XXXXXXXXX           E
  221. XXXXXXXXX           F
  222. XXXXXXXXX           G
  223. XXXXXXXXX           H
  224. XXXXXXXXX           I
  225. XXXXXXXXX           J
  226. XXXXXXXXX           K
  227. XXXXXXXXX           L
  228. XXXXXXXXX           M
  229. XXXXXXXXX           N
  230. XXXXXXXXX           O
  231. XXXXXXXXX           P
  232. XXXXXXXXX           Q
  233. XXXXXXXXX           R
  234. XXXXXXXXX           S
  235. XXXXXXXXX           T
  236. XXXXXXXXX           
  237. E   *
  238. XXXXXXXXX           V
  239. XXXXXXXXX           W
  240. XXXXXXXXX           X
  241. XXXXXXXXX           Y
  242. XXXXXXXXX           Z
  243. XXXXXXXXX           [
  244. XXXXXXXXX           \
  245. XXXXXXXXX           ]
  246. XXXXXXXXX           ^
  247. XXXXXXXXX           _
  248. XXXXXXXXX           `
  249. XXXXXXXXX           a
  250. XXXXXXXXX           b
  251. XXXXXXXXX           c
  252. XXXXXXXXX           d
  253. XXXXXXXXX           e
  254. XXXXXXXXX           f
  255. XXXXXXXXX           g
  256. XXXXXXXXX           h
  257. XXXXXXXXX           i
  258. XXXXXXXXX           j
  259. XXXXXXXXX           k
  260. XXXXXXXXX           l
  261. XXXXXXXXX           m
  262. XXXXXXXXX           n
  263. XXXXXXXXX           o
  264. XXXXXXXXX           p
  265. XXXXXXXXX           q
  266. XXXXXXXXX           r
  267. XXXXXXXXX           s
  268. XXXXXXXXX           t
  269. XXXXXXXXX           u
  270. XXXXXXXXX           v
  271. XXXXXXXXX           w
  272. XXXXXXXXX           x
  273. XXXXXXXXX           y
  274. XXXXXXXXX           z
  275. XXXXXXXXX           {
  276. XXXXXXXXX           |
  277. XXXXXXXXX           }
  278. XXXXXXXXX           ~
  279. XXXXXXXXX           
  280. E   *
  281. XXXXXXXXX           
  282. XXXXXXXXX           
  283. XXXXXXXXX           
  284. XXXXXXXXX           
  285. XXXXXXXXX           
  286. XXXXXXXXX           
  287. XXXXXXXXX           
  288. XXXXXXXXX           
  289. XXXXXXXXX           
  290. XXXXXXXXX           
  291. XXXXXXXXX           
  292. XXXXXXXXX           
  293. XXXXXXXXX           
  294. XXXXXXXXX           
  295. XXXXXXXXX           
  296. XXXXXXXXX           
  297. XXXXXXXXX           
  298. XXXXXXXXX           
  299. XXXXXXXXX           
  300. XXXXXXXXX           
  301. XXXXXXXXX           
  302. XXXXXXXXX           
  303. XXXXXXXXX           
  304. XXXXXXXXX           
  305. XXXXXXXXX           
  306. XXXXXXXXX           
  307. XXXXXXXXX           
  308. XXXXXXXXX           
  309. XXXXXXXXX           
  310. XXXXXXXXX           
  311. XXXXXXXXX           
  312. XXXXXXXXX           
  313. XXXXXXXXX           
  314. XXXXXXXXX           
  315. XXXXXXXXX           
  316. XXXXXXXXX           
  317. XXXXXXXXX           
  318. XXXXXXXXX           
  319. XXXXXXXXX           
  320. XXXXXXXXX           
  321. XXXXXXXXX           
  322. XXXXXXXXX           
  323. E   *
  324. XXXXXXXXX           
  325. XXXXXXXXX           
  326. XXXXXXXXX           
  327. XXXXXXXXX           
  328. XXXXXXXXX           
  329. XXXXXXXXX           
  330. XXXXXXXXX           
  331. XXXXXXXXX           
  332. XXXXXXXXX           
  333. XXXXXXXXX           
  334. XXXXXXXXX           
  335. XXXXXXXXX           
  336. XXXXXXXXX           
  337. XXXXXXXXX           
  338. XXXXXXXXX           
  339. XXXXXXXXX           
  340. XXXXXXXXX           
  341. XXXXXXXXX           
  342. XXXXXXXXX           
  343. XXXXXXXXX           
  344. XXXXXXXXX           
  345. XXXXXXXXX           
  346. XXXXXXXXX           
  347. XXXXXXXXX           
  348. XXXXXXXXX           
  349. XXXXXXXXX           
  350. XXXXXXXXX           
  351. XXXXXXXXX           
  352. XXXXXXXXX           
  353. XXXXXXXXX           
  354. XXXXXXXXX           
  355. XXXXXXXXX           
  356. XXXXXXXXX           
  357. XXXXXXXXX           
  358. XXXXXXXXX           
  359. XXXXXXXXX           
  360. XXXXXXXXX           
  361. XXXXXXXXX           
  362. XXXXXXXXX           
  363. XXXXXXXXX           
  364. XXXXXXXXX           
  365. XXXXXXXXX           
  366. E   *
  367. XXXXXXXXX           
  368. XXXXXXXXX           
  369. XXXXXXXXX           
  370. XXXXXXXXX           
  371. XXXXXXXXX           
  372. XXXXXXXXX           
  373. XXXXXXXXX           
  374. XXXXXXXXX           
  375. XXXXXXXXX           
  376. XXXXXXXXX           
  377. XXXXXXXXX           
  378. XXXXXXXXX           
  379. XXXXXXXXX           
  380. XXXXXXXXX           
  381. XXXXXXXXX           
  382. XXXXXXXXX           
  383. XXXXXXXXX           
  384. XXXXXXXXX           
  385. XXXXXXXXX           
  386. XXXXXXXXX           
  387. XXXXXXXXX           
  388. XXXXXXXXX           
  389. XXXXXXXXX           
  390. XXXXXXXXX           
  391. XXXXXXXXX           
  392. XXXXXXXXX           
  393. XXXXXXXXX           
  394. XXXXXXXXX           
  395. XXXXXXXXX           
  396. XXXXXXXXX           
  397. XXXXXXXXX           
  398. XXXXXXXXX           
  399. XXXXXXXXX           
  400. XXXXXXXXX           
  401. XXXXXXXXX           
  402. XXXXXXXXX           
  403. XXXXXXXXX           
  404. XXXXXXXXX           
  405. XXXXXXXXX           
  406. XXXXXXXXX           
  407. XXXXXXXXX           
  408. XXXXXXXXX           
  409. E       
  410. XXXXXXXXX           
  411. XXXXXXXXX           
  412. XXXXXXXXX           
  413. XXXXXXXXX           
  414. XXXXXXXXX           
  415. XXXXXXXXX           
  416. XXXXXXXXX           
  417. XXXXXXXXX           
  418. XXXXXXXXX           
  419. XXXXXXXXX           
  420. XXXXXXXXX           
  421. XXXXXXXXX           
  422. XXXXXXXXX           
  423. XXXXXXXXX           
  424. XXXXXXXXX           
  425. XXXXXXXXX           
  426. XXXXXXXXX           
  427. XXXXXXXXX           
  428. XXXXXXXXX           
  429. XXXXXXXXX           
  430. XXXXXXXXX           
  431. XXXXXXXXX           
  432. XXXXXXXXX           
  433. XXXXXXXXX           
  434. XXXXXXXXX           
  435. XXXXXXXXX           
  436. XXXXXXXXX           
  437. XXXXXXXXX           
  438. XXXXXXXXX           
  439. XXXXXXXXX           
  440. XXXXXXXXX           
  441. XXXXXXXXX           
  442. XXXXXXXXX           
  443. XXXXXXXXX           
  444. XXXXXXXXX           
  445. XXXXXXXXX           
  446. XXXXXXXXX           
  447. XXXXXXXXX           
  448. XXXXXXXXX           
  449. XXXXXXXXX           
  450. XXXXXXXXX           
  451. XXXXXXXXX           
  452. XXXXXXXXX           >
  453. XXXXXXXXX           @
  454. XXXXXXXXX           B
  455. XXXXXXXXX           D
  456. XXXXXXXXX           F
  457. XXXXXXXXX           H
  458.  FORMAT
  459.     RELEASE WINDOW W1
  460.     CLEAR TYPEAHEAD
  461.     SET ESCAPE ON 
  462.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  463.                 DBF(), MESSAGE()
  464.     ***check for number of records ...limit = 50 
  465.     n_rec = 0            &&  number of records
  466.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  467.     USE PATCHARG.DBF IN B ORDER TAG 
  468.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  469.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  470.     SELECT A    && use paymain
  471.     n_rec = RECCOUNT()
  472.     IF n_rec > 50 
  473.        ** setup aray to hold id#s to delete
  474.        DECLARE d_aray[n_rec]
  475.        i_dex =1
  476.        GO TOP 
  477.        SCAN WHILE i_dex <= (n_rec -50)
  478.           ** put id#s in aray
  479.           d_aray[i_dex] = A->CUSTNO
  480.           DELETE
  481.           i_dex = i_dex +1
  482.        ENDSCAN
  483.           i_dex =1
  484.           SELECT B       && use patcharg
  485.                     
  486.                     
  487.                     
  488.                     
  489.                     
  490.                     
  491.                     
  492.                         
  493.                     
  494.                     
  495.                     
  496.                     
  497.                     
  498.                     
  499.                     
  500.                     
  501.                     
  502.                     
  503.                     
  504.                     
  505.                     
  506.                     
  507.                     
  508.                     
  509.                     
  510.                     
  511.                     
  512.                     
  513.                     
  514.                     
  515.                      
  516.                     !
  517.                     "
  518.                     #
  519.                     $
  520.                     %
  521.                     &
  522.                     '
  523.                     (
  524.                     )
  525.                     *
  526.                     
  527. E   *
  528.                     ,
  529.                     -
  530.                     .
  531.                     /
  532.                     0
  533.                     1
  534.                     2
  535.                     3
  536.                     4
  537.                     5
  538.                     6
  539.                     7
  540.                     8
  541.                     9
  542.                     :
  543.                     ;
  544.                     <
  545.                     =
  546.                     >
  547.                     ?
  548.                     @
  549.                     A
  550.                     B
  551.                     C
  552.                     D
  553.                     E
  554.                     F
  555.                     G
  556.                     H
  557.                     I
  558.                     J
  559.                     K
  560.                     L
  561.                     M
  562.                     N
  563.                     O
  564.                     P
  565.                     Q
  566.                     R
  567.                     S
  568.                     T
  569.                     
  570. E   *
  571.                     V
  572.                     W
  573.                     X
  574.                     Y
  575.                     Z
  576.                     [
  577.                     \
  578.                     ]
  579.                     ^
  580.                     _
  581.                     `
  582.                     a
  583.                     b
  584.                     c
  585.                     d
  586.                     e
  587.                     f
  588.                     g
  589.                     h
  590.                     i
  591.                     j
  592.                     k
  593.                     l
  594.                     m
  595.                     n
  596.                     o
  597.                     p
  598.                     q
  599.                     r
  600.                     s
  601.                     t
  602.                     u
  603.                     v
  604.                     w
  605.                     x
  606.                     y
  607.                     z
  608.                     {
  609.                     |
  610.                     }
  611.                     ~
  612.                     
  613. E   *
  614.                     
  615.                     
  616.                     
  617.                     
  618.                     
  619.                     
  620.                     
  621.                     
  622.                     
  623.                     
  624.                     
  625.                     
  626.                     
  627.                     
  628.                     
  629.                     
  630.                     
  631.                     
  632.                     
  633.                     
  634.                     
  635.                     
  636.                     
  637.                     
  638.                     
  639.                     
  640.                     
  641.                     
  642.                     
  643.                     
  644.                     
  645.                     
  646.                     
  647.                     
  648.                     
  649.                     
  650.                     
  651.                     
  652.                     
  653.                     
  654.                     
  655.                     
  656. E   *
  657.                     
  658.                     
  659.                     
  660.                     
  661.                     
  662.                     
  663.                     
  664.                     
  665.                     
  666.                     
  667.                     
  668.                     
  669.                     
  670.                     
  671.                     
  672.                     
  673.                     
  674.                     
  675.                     
  676.                     
  677.                     
  678.                     
  679.                     
  680.                     
  681.                     
  682.                     
  683.                     
  684.                     
  685.                     
  686.                     
  687.                     
  688.                     
  689.                     
  690.                     
  691.                     
  692.                     
  693.                     
  694.                     
  695.                     
  696.                     
  697.                     
  698.                     
  699. E   *
  700.                     
  701.                     
  702.                     
  703.                     
  704.                     
  705.                     
  706.                     
  707.                     
  708.                     
  709.                     
  710.                     
  711.                     
  712.                     
  713.                     
  714.                     
  715.                     
  716.                     
  717.                     
  718.                     
  719.                     
  720.                     
  721.                     
  722.                     
  723.                     
  724.                     
  725.                     
  726.                     
  727.                     
  728.                     
  729.                     
  730.                     
  731.                     
  732.                     
  733.                     
  734.                     
  735.                     
  736.                     
  737.                     
  738.                     
  739.                     
  740.                     
  741.                     
  742. E       
  743.                     
  744.                     
  745.                     
  746.                     
  747.                     
  748.                     
  749.                     
  750.                     
  751.                     
  752.                     
  753.                     
  754.                     
  755.                     
  756.                     
  757.                     
  758.                     
  759.                     
  760.                     
  761.                     
  762.                     
  763.                     
  764.                     
  765.                     
  766.                     
  767.                     
  768.                     
  769.                     
  770.                     
  771.                     
  772.                     
  773.                     
  774.                     
  775.                     
  776.                     
  777.                     
  778.                     
  779.                     
  780.                     
  781.                     
  782.                     
  783.                     
  784.                     
  785.                     N
  786.                     P
  787.                     R
  788.                     T
  789.                     V
  790.                     X
  791.  FORMAT
  792.     RELEASE WINDOW W1
  793.     CLEAR TYPEAHEAD
  794.     SET ESCAPE ON 
  795.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  796.                 DBF(), MESSAGE()
  797.     ***check for number of records ...limit = 50 
  798.     n_rec = 0            &&  number of records
  799.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  800.     USE PATCHARG.DBF IN B ORDER TAG 
  801.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  802.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  803.     SELECT A    && use paymain
  804.     n_rec = RECCOUNT()
  805.     IF n_rec > 50 
  806.        ** setup aray to hold id#s to delete
  807.        DECLARE d_aray[n_rec]
  808.        i_dex =1
  809.        GO TOP 
  810.        SCAN WHILE i_dex <= (n_rec -50)
  811.           ** put id#s in aray
  812.           d_aray[i_dex] = A->CUSTNO
  813.           DELETE
  814.           i_dex = i_dex +1
  815.        ENDSCAN
  816.           i_dex =1
  817.           SELECT B       && use patcharg
  818.                     
  819.                     
  820.                     
  821.                     
  822.                     
  823.                     
  824.                     
  825.                         
  826.                     
  827.                     
  828.                     
  829.                     
  830.                     
  831.                     
  832.                     
  833.                     
  834.                     
  835.                     
  836.                     
  837.                     
  838.                     
  839.                     
  840.                     
  841.                     
  842.                     
  843.                     
  844.                     
  845.                     
  846.                     
  847.                     
  848.                      
  849.                     !
  850.                     "
  851.                     #
  852.                     $
  853.                     %
  854.                     &
  855.                     '
  856.                     (
  857.                     )
  858.                     *
  859.                     
  860. E   *
  861.                     ,
  862.                     -
  863.                     .
  864.                     /
  865.                     0
  866.                     1
  867.                     2
  868.                     3
  869.                     4
  870.                     5
  871.                     6
  872.                     7
  873.                     8
  874.                     9
  875.                     :
  876.                     ;
  877.                     <
  878.                     =
  879.                     >
  880.                     ?
  881.                     @
  882.                     A
  883.                     B
  884.                     C
  885.                     D
  886.                     E
  887.                     F
  888.                     G
  889.                     H
  890.                     I
  891.                     J
  892.                     K
  893.                     L
  894.                     M
  895.                     N
  896.                     O
  897.                     P
  898.                     Q
  899.                     R
  900.                     S
  901.                     T
  902.                     
  903. E   *
  904.                     V
  905.                     W
  906.                     X
  907.                     Y
  908.                     Z
  909.                     [
  910.                     \
  911.                     ]
  912.                     ^
  913.                     _
  914.                     `
  915.                     a
  916.                     b
  917.                     c
  918.                     d
  919.                     e
  920.                     f
  921.                     g
  922.                     h
  923.                     i
  924.                     j
  925.                     k
  926.                     l
  927.                     m
  928.                     n
  929.                     o
  930.                     p
  931.                     q
  932.                     r
  933.                     s
  934.                     t
  935.                     u
  936.                     v
  937.                     w
  938.                     x
  939.                     y
  940.                     z
  941.                     {
  942.                     |
  943.                     }
  944.                     ~
  945.                     
  946. E   *
  947.                     
  948.                     
  949.                     
  950.                     
  951.                     
  952.                     
  953.                     
  954.                     
  955.                     
  956.                     
  957.                     
  958.                     
  959.                     
  960.                     
  961.                     
  962.                     
  963.                     
  964.                     
  965.                     
  966.                     
  967.                     
  968.                     
  969.                     
  970.                     
  971.                     
  972.                     
  973.                     
  974.                     
  975.                     
  976.                     
  977.                     
  978.                     
  979.                     
  980.                     
  981.                     
  982.                     
  983.                     
  984.                     
  985.                     
  986.                     
  987.                     
  988.                     
  989. E   *
  990.                     
  991.                     
  992.                     
  993.                     
  994.                     
  995.                     
  996.                     
  997.                     
  998.                     
  999.                     
  1000.                     
  1001.                     
  1002.                     
  1003.                     
  1004.                     
  1005.                     
  1006.                     
  1007.                     
  1008.                     
  1009.                     
  1010.                     
  1011.                     
  1012.                     
  1013.                     
  1014.                     
  1015.                     
  1016.                     
  1017.                     
  1018.                     
  1019.                     
  1020.                     
  1021.                     
  1022.                     
  1023.                     
  1024.                     
  1025.                     
  1026.                     
  1027.                     
  1028.                     
  1029.                     
  1030.                     
  1031.                     
  1032. E   *
  1033.                     
  1034.                     
  1035.                     
  1036.                     
  1037.                     
  1038.                     
  1039.                     
  1040.                     
  1041.                     
  1042.                     
  1043.                     
  1044.                     
  1045.                     
  1046.                     
  1047.                     
  1048.                     
  1049.                     
  1050.                     
  1051.                     
  1052.                     
  1053.                     
  1054.                     
  1055.                     
  1056.                     
  1057.                     
  1058.                     
  1059.                     
  1060.                     
  1061.                     
  1062.                     
  1063.                     
  1064.                     
  1065.                     
  1066.                     
  1067.                     
  1068.                     
  1069.                     
  1070.                     
  1071.                     
  1072.                     
  1073.                     
  1074.                     
  1075. E       
  1076.                     
  1077.                     
  1078.                     
  1079.                     
  1080.                     
  1081.                     
  1082.                     
  1083.                     
  1084.                     
  1085.                     
  1086.                     
  1087.                     
  1088.                     
  1089.                     
  1090.                     
  1091.                     
  1092.                     
  1093.                     
  1094.                     
  1095.                     
  1096.                     
  1097.                     
  1098.                     
  1099.                     
  1100.                     
  1101.                     
  1102.                     
  1103.                     
  1104.                     
  1105.                     
  1106.                     
  1107.                     
  1108.                     
  1109.                     
  1110.                     
  1111.                     
  1112.                     
  1113.                     
  1114.                     
  1115.                     
  1116.                     
  1117.                     
  1118.                     ^
  1119.                     `
  1120.                     b
  1121.                     d
  1122.                     f
  1123.                     h
  1124.  FORMAT
  1125.     RELEASE WINDOW W1
  1126.     CLEAR TYPEAHEAD
  1127.     SET ESCAPE ON 
  1128.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  1129.                 DBF(), MESSAGE()
  1130.     ***check for number of records ...limit = 50 
  1131.     n_rec = 0            &&  number of records
  1132.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  1133.     USE PATCHARG.DBF IN B ORDER TAG 
  1134.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  1135.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  1136.     SELECT A    && use paymain
  1137.     n_rec = RECCOUNT()
  1138.     IF n_rec > 50 
  1139.        ** setup aray to hold id#s to delete
  1140.        DECLARE d_aray[n_rec]
  1141.        i_dex =1
  1142.        GO TOP 
  1143.        SCAN WHILE i_dex <= (n_rec -50)
  1144.           ** put id#s in aray
  1145.           d_aray[i_dex] = A->CUSTNO
  1146.           DELETE
  1147.           i_dex = i_dex +1
  1148.        ENDSCAN
  1149.           i_dex =1
  1150.           SELECT B       && use patcharg
  1151.                     
  1152.                     
  1153.                     
  1154.                     
  1155.                     
  1156.                     
  1157.                     
  1158.                         
  1159.                     
  1160.                     
  1161.                     
  1162.                     
  1163.                     
  1164.                     
  1165.                     
  1166.                     
  1167.                     
  1168.                     
  1169.                     
  1170.                     
  1171.                     
  1172.                     
  1173.                     
  1174.                     
  1175.                     
  1176.                     
  1177.                     
  1178.                     
  1179.                     
  1180.                     
  1181.                      
  1182.                     !
  1183.                     "
  1184.                     #
  1185.                     $
  1186.                     %
  1187.                     &
  1188.                     '
  1189.                     (
  1190.                     )
  1191.                     *
  1192.                     
  1193. E   *
  1194.                     ,
  1195.                     -
  1196.                     .
  1197.                     /
  1198.                     0
  1199.                     1
  1200.                     2
  1201.                     3
  1202.                     4
  1203.                     5
  1204.                     6
  1205.                     7
  1206.                     8
  1207.                     9
  1208.                     :
  1209.                     ;
  1210.                     <
  1211.                     =
  1212.                     >
  1213.                     ?
  1214.                     @
  1215.                     A
  1216.                     B
  1217.                     C
  1218.                     D
  1219.                     E
  1220.                     F
  1221.                     G
  1222.                     H
  1223.                     I
  1224.                     J
  1225.                     K
  1226.                     L
  1227.                     M
  1228.                     N
  1229.                     O
  1230.                     P
  1231.                     Q
  1232.                     R
  1233.                     S
  1234.                     T
  1235.                     
  1236. E   *
  1237.                     V
  1238.                     W
  1239.                     X
  1240.                     Y
  1241.                     Z
  1242.                     [
  1243.                     \
  1244.                     ]
  1245.                     ^
  1246.                     _
  1247.                     `
  1248.                     a
  1249.                     b
  1250.                     c
  1251.                     d
  1252.                     e
  1253.                     f
  1254.                     g
  1255.                     h
  1256.                     i
  1257.                     j
  1258.                     k
  1259.                     l
  1260.                     m
  1261.                     n
  1262.                     o
  1263.                     p
  1264.                     q
  1265.                     r
  1266.                     s
  1267.                     t
  1268.                     u
  1269.                     v
  1270.                     w
  1271.                     x
  1272.                     y
  1273.                     z
  1274.                     {
  1275.                     |
  1276.                     }
  1277.                     ~
  1278.                     
  1279. E   *
  1280.                     
  1281.                     
  1282.                     
  1283.                     
  1284.                     
  1285.                     
  1286.                     
  1287.                     
  1288.                     
  1289.                     
  1290.                     
  1291.                     
  1292.                     
  1293.                     
  1294.                     
  1295.                     
  1296.                     
  1297.                     
  1298.                     
  1299.                     
  1300.                     
  1301.                     
  1302.                     
  1303.                     
  1304.                     
  1305.                     
  1306.                     
  1307.                     
  1308.                     
  1309.                     
  1310.                     
  1311.                     
  1312.                     
  1313.                     
  1314.                     
  1315.                     
  1316.                     
  1317.                     
  1318.                     
  1319.                     
  1320.                     
  1321.                     
  1322. E   *
  1323.                     
  1324.                     
  1325.                     
  1326.                     
  1327.                     
  1328.                     
  1329.                     
  1330.                     
  1331.                     
  1332.                     
  1333.                     
  1334.                     
  1335.                     
  1336.                     
  1337.                     
  1338.                     
  1339.                     
  1340.                     
  1341.                     
  1342.                     
  1343.                     
  1344.                     
  1345.                     
  1346.                     
  1347.                     
  1348.                     
  1349.                     
  1350.                     
  1351.                     
  1352.                     
  1353.                     
  1354.                     
  1355.                     
  1356.                     
  1357.                     
  1358.                     
  1359.                     
  1360.                     
  1361.                     
  1362.                     
  1363.                     
  1364.                     
  1365. E   *
  1366.                     
  1367.                     
  1368.                     
  1369.                     
  1370.                     
  1371.                     
  1372.                     
  1373.                     
  1374.                     
  1375.                     
  1376.                     
  1377.                     
  1378.                     
  1379.                     
  1380.                     
  1381.                     
  1382.                     
  1383.                     
  1384.                     
  1385.                     
  1386.                     
  1387.                     
  1388.                     
  1389.                     
  1390.                     
  1391.                     
  1392.                     
  1393.                     
  1394.                     
  1395.                     
  1396.                     
  1397.                     
  1398.                     
  1399.                     
  1400.                     
  1401.                     
  1402.                     
  1403.                     
  1404.                     
  1405.                     
  1406.                     
  1407.                     
  1408. E       
  1409.                     
  1410.                     
  1411.                     
  1412.                     
  1413.                     
  1414.                     
  1415.                     
  1416.                     
  1417.                     
  1418.                     
  1419.                     
  1420.                     
  1421.                     
  1422.                     
  1423.                     
  1424.                     
  1425.                     
  1426.                     
  1427.                     
  1428.                     
  1429.                     
  1430.                     
  1431.                     
  1432.                     
  1433.                     
  1434.                     
  1435.                     
  1436.                     
  1437.                     
  1438.                     
  1439.                     
  1440.                     
  1441.                     
  1442.                     
  1443.                     
  1444.                     
  1445.                     
  1446.                     
  1447.                     
  1448.                     
  1449.                     
  1450.                     
  1451.                     n
  1452.                     p
  1453.                     r
  1454.                     t
  1455.                     v
  1456.                     x
  1457.  FORMAT
  1458.     RELEASE WINDOW W1
  1459.     CLEAR TYPEAHEAD
  1460.     SET ESCAPE ON 
  1461.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  1462.                 DBF(), MESSAGE()
  1463.     ***check for number of records ...limit = 50 
  1464.     n_rec = 0            &&  number of records
  1465.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  1466.     USE PATCHARG.DBF IN B ORDER TAG 
  1467.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  1468.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  1469.     SELECT A    && use paymain
  1470.     n_rec = RECCOUNT()
  1471.     IF n_rec > 50 
  1472.        ** setup aray to hold id#s to delete
  1473.        DECLARE d_aray[n_rec]
  1474.        i_dex =1
  1475.        GO TOP 
  1476.        SCAN WHILE i_dex <= (n_rec -50)
  1477.           ** put id#s in aray
  1478.           d_aray[i_dex] = A->CUSTNO
  1479.           DELETE
  1480.           i_dex = i_dex +1
  1481.        ENDSCAN
  1482.           i_dex =1
  1483.           SELECT B       && use patcharg
  1484.                     
  1485.                     
  1486.                     
  1487.                     
  1488.                     
  1489.                     
  1490.                     
  1491.                         
  1492.                     
  1493.                     
  1494.                     
  1495.                     
  1496.                     
  1497.                     
  1498.                     
  1499.                     
  1500.                     
  1501.                     
  1502.                     
  1503.                     
  1504.                     
  1505.                     
  1506.                     
  1507.                     
  1508.                     
  1509.                     
  1510.                     
  1511.                     
  1512.                     
  1513.                     
  1514.                      
  1515.                     !
  1516.                     "
  1517.                     #
  1518.                     $
  1519.                     %
  1520.                     &
  1521.                     '
  1522.                     (
  1523.                     )
  1524.                     *
  1525.                     
  1526. E   *
  1527.                     ,
  1528.                     -
  1529.                     .
  1530.                     /
  1531.                     0
  1532.                     1
  1533.                     2
  1534.                     3
  1535.                     4
  1536.                     5
  1537.                     6
  1538.                     7
  1539.                     8
  1540.                     9
  1541.                     :
  1542.                     ;
  1543.                     <
  1544.                     =
  1545.                     >
  1546.                     ?
  1547.                     @
  1548.                     A
  1549.                     B
  1550.                     C
  1551.                     D
  1552.                     E
  1553.                     F
  1554.                     G
  1555.                     H
  1556.                     I
  1557.                     J
  1558.                     K
  1559.                     L
  1560.                     M
  1561.                     N
  1562.                     O
  1563.                     P
  1564.                     Q
  1565.                     R
  1566.                     S
  1567.                     T
  1568.                     
  1569. E   *
  1570.                     V
  1571.                     W
  1572.                     X
  1573.                     Y
  1574.                     Z
  1575.                     [
  1576.                     \
  1577.                     ]
  1578.                     ^
  1579.                     _
  1580.                     `
  1581.                     a
  1582.                     b
  1583.                     c
  1584.                     d
  1585.                     e
  1586.                     f
  1587.                     g
  1588.                     h
  1589.                     i
  1590.                     j
  1591.                     k
  1592.                     l
  1593.                     m
  1594.                     n
  1595.                     o
  1596.                     p
  1597.                     q
  1598.                     r
  1599.                     s
  1600.                     t
  1601.                     u
  1602.                     v
  1603.                     w
  1604.                     x
  1605.                     y
  1606.                     z
  1607.                     {
  1608.                     |
  1609.                     }
  1610.                     ~
  1611.                     
  1612. E   *
  1613.                     
  1614.                     
  1615.                     
  1616.                     
  1617.                     
  1618.                     
  1619.                     
  1620.                     
  1621.                     
  1622.                     
  1623.                     
  1624.                     
  1625.                     
  1626.                     
  1627.                     
  1628.                     
  1629.                     
  1630.                     
  1631.                     
  1632.                     
  1633.                     
  1634.                     
  1635.                     
  1636.                     
  1637.                     
  1638.                     
  1639.                     
  1640.                     
  1641.                     
  1642.                     
  1643.                     
  1644.                     
  1645.                     
  1646.                     
  1647.                     
  1648.                     
  1649.                     
  1650.                     
  1651.                     
  1652.                     
  1653.                     
  1654.                     
  1655. E   *
  1656.                     
  1657.                     
  1658.                     
  1659.                     
  1660.                     
  1661.                     
  1662.                     
  1663.                     
  1664.                     
  1665.                     
  1666.                     
  1667.                     
  1668.                     
  1669.                     
  1670.                     
  1671.                     
  1672.                     
  1673.                     
  1674.                     
  1675.                     
  1676.                     
  1677.                     
  1678.                     
  1679.                     
  1680.                     
  1681.                     
  1682.                     
  1683.                     
  1684.                     
  1685.                     
  1686.                     
  1687.                     
  1688.                     
  1689.                     
  1690.                     
  1691.                     
  1692.                     
  1693.                     
  1694.                     
  1695.                     
  1696.                     
  1697.                     
  1698. E   *
  1699.                     
  1700.                     
  1701.                     
  1702.                     
  1703.                     
  1704.                     
  1705.                     
  1706.                     
  1707.                     
  1708.                     
  1709.                     
  1710.                     
  1711.                     
  1712.                     
  1713.                     
  1714.                     
  1715.                     
  1716.                     
  1717.                     
  1718.                     
  1719.                     
  1720.                     
  1721.                     
  1722.                     
  1723.                     
  1724.                     
  1725.                     
  1726.                     
  1727.                     
  1728.                     
  1729.                     
  1730.                     
  1731.                     
  1732.                     
  1733.                     
  1734.                     
  1735.                     
  1736.                     
  1737.                     
  1738.                     
  1739.                     
  1740.                     
  1741. E       
  1742.                     
  1743.                     
  1744.                     
  1745.                     
  1746.                     
  1747.                     
  1748.                     
  1749.                     
  1750.                     
  1751.                     
  1752.                     
  1753.                     
  1754.                     
  1755.                     
  1756.                     
  1757.                     
  1758.                     
  1759.                     
  1760.                     
  1761.                     
  1762.                     
  1763.                     
  1764.                     
  1765.                     
  1766.                     
  1767.                     
  1768.                     
  1769.                     
  1770.                     
  1771.                     
  1772.                     
  1773.                     
  1774.                     
  1775.                     
  1776.                     
  1777.                     
  1778.                     
  1779.                     
  1780.                     
  1781.                     
  1782.                     
  1783.                     
  1784.                     ~
  1785.                     
  1786.                     
  1787.                     
  1788.                     
  1789.                     
  1790.  FORMAT
  1791.     RELEASE WINDOW W1
  1792.     CLEAR TYPEAHEAD
  1793.     SET ESCAPE ON 
  1794.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  1795.                 DBF(), MESSAGE()
  1796.     ***check for number of records ...limit = 50 
  1797.     n_rec = 0            &&  number of records
  1798.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  1799.     USE PATCHARG.DBF IN B ORDER TAG 
  1800.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  1801.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  1802.     SELECT A    && use paymain
  1803.     n_rec = RECCOUNT()
  1804.     IF n_rec > 50 
  1805.        ** setup aray to hold id#s to delete
  1806.        DECLARE d_aray[n_rec]
  1807.        i_dex =1
  1808.        GO TOP 
  1809.        SCAN WHILE i_dex <= (n_rec -50)
  1810.           ** put id#s in aray
  1811.           d_aray[i_dex] = A->CUSTNO
  1812.           DELETE
  1813.           i_dex = i_dex +1
  1814.        ENDSCAN
  1815.           i_dex =1
  1816.           SELECT B       && use patcharg
  1817.                     
  1818.                     
  1819.                     
  1820.                     
  1821.                     
  1822.                     
  1823.                     
  1824.                         
  1825.                     
  1826.                     
  1827.                     
  1828.                     
  1829.                     
  1830.                     
  1831.                     
  1832.                     
  1833.                     
  1834.                     
  1835.                     
  1836.                     
  1837.                     
  1838.                     
  1839.                     
  1840.                     
  1841.                     
  1842.                     
  1843.                     
  1844.                     
  1845.                     
  1846.                     
  1847.                      
  1848.                     !
  1849.                     "
  1850.                     #
  1851.                     $
  1852.                     %
  1853.                     &
  1854.                     '
  1855.                     (
  1856.                     )
  1857.                     *
  1858.                     
  1859. E   *
  1860.                     ,
  1861.                     -
  1862.                     .
  1863.                     /
  1864.                     0
  1865.                     1
  1866.                     2
  1867.                     3
  1868.                     4
  1869.                     5
  1870.                     6
  1871.                     7
  1872.                     8
  1873.                     9
  1874.                     :
  1875.                     ;
  1876.                     <
  1877.                     =
  1878.                     >
  1879.                     ?
  1880.                     @
  1881.                     A
  1882.                     B
  1883.                     C
  1884.                     D
  1885.                     E
  1886.                     F
  1887.                     G
  1888.                     H
  1889.                     I
  1890.                     J
  1891.                     K
  1892.                     L
  1893.                     M
  1894.                     N
  1895.                     O
  1896.                     P
  1897.                     Q
  1898.                     R
  1899.                     S
  1900.                     T
  1901.                     
  1902. E   *
  1903.                     V
  1904.                     W
  1905.                     X
  1906.                     Y
  1907.                     Z
  1908.                     [
  1909.                     \
  1910.                     ]
  1911.                     ^
  1912.                     _
  1913.                     `
  1914.                     a
  1915.                     b
  1916.                     c
  1917.                     d
  1918.                     e
  1919.                     f
  1920.                     g
  1921.                     h
  1922.                     i
  1923.                     j
  1924.                     k
  1925.                     l
  1926.                     m
  1927.                     n
  1928.                     o
  1929.                     p
  1930.                     q
  1931.                     r
  1932.                     s
  1933.                     t
  1934.                     u
  1935.                     v
  1936.                     w
  1937.                     x
  1938.                     y
  1939.                     z
  1940.                     {
  1941.                     |
  1942.                     }
  1943.                     ~
  1944.                     
  1945. E   *
  1946.                     
  1947.                     
  1948.                     
  1949.                     
  1950.                     
  1951.                     
  1952.                     
  1953.                     
  1954.                     
  1955.                     
  1956.                     
  1957.                     
  1958.                     
  1959.                     
  1960.                     
  1961.                     
  1962.                     
  1963.                     
  1964.                     
  1965.                     
  1966.                     
  1967.                     
  1968.                     
  1969.                     
  1970.                     
  1971.                     
  1972.                     
  1973.                     
  1974.                     
  1975.                     
  1976.                     
  1977.                     
  1978.                     
  1979.                     
  1980.                     
  1981.                     
  1982.                     
  1983.                     
  1984.                     
  1985.                     
  1986.                     
  1987.                     
  1988. E   *
  1989.                     
  1990.                     
  1991.                     
  1992.                     
  1993.                     
  1994.                     
  1995.                     
  1996.                     
  1997.                     
  1998.                     
  1999.                     
  2000.                     
  2001.                     
  2002.                     
  2003.                     
  2004.                     
  2005.                     
  2006.                     
  2007.                     
  2008.                     
  2009.                     
  2010.                     
  2011.                     
  2012.                     
  2013.                     
  2014.                     
  2015.                     
  2016.                     
  2017.                     
  2018.                     
  2019.                     
  2020.                     
  2021.                     
  2022.                     
  2023.                     
  2024.                     
  2025.                     
  2026.                     
  2027.                     
  2028.                     
  2029.                     
  2030.                     
  2031. E   *
  2032.                     
  2033.                     
  2034.                     
  2035.                     
  2036.                     
  2037.                     
  2038.                     
  2039.                     
  2040.                     
  2041.                     
  2042.                     
  2043.                     
  2044.                     
  2045.                     
  2046.                     
  2047.                     
  2048.                     
  2049.                     
  2050.                     
  2051.                     
  2052.                     
  2053.                     
  2054.                     
  2055.                     
  2056.                     
  2057.                     
  2058.                     
  2059.                     
  2060.                     
  2061.                     
  2062.                     
  2063.                     
  2064.                     
  2065.                     
  2066.                     
  2067.                     
  2068.                     
  2069.                     
  2070.                     
  2071.                     
  2072.                     
  2073.                     
  2074. E       
  2075.                     
  2076.                     
  2077.                     
  2078.                     
  2079.                     
  2080.                     
  2081.                     
  2082.                     
  2083.                     
  2084.                     
  2085.                     
  2086.                     
  2087.                     
  2088.                     
  2089.                     
  2090.                     
  2091.                     
  2092.                     
  2093.                     
  2094.                     
  2095.                     
  2096.                     
  2097.                     
  2098.                     
  2099.                     
  2100.                     
  2101.                     
  2102.                     
  2103.                     
  2104.                     
  2105.                     
  2106.                     
  2107.                     
  2108.                     
  2109.                     
  2110.                     
  2111.                     
  2112.                     
  2113.                     
  2114.                     
  2115.                     
  2116.                     
  2117.                     
  2118.                     
  2119.                     
  2120.                     
  2121.                     
  2122.                     
  2123.  FORMAT
  2124.     RELEASE WINDOW W1
  2125.     CLEAR TYPEAHEAD
  2126.     SET ESCAPE ON 
  2127.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  2128.                 DBF(), MESSAGE()
  2129.     ***check for number of records ...limit = 50 
  2130.     n_rec = 0            &&  number of records
  2131.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  2132.     USE PATCHARG.DBF IN B ORDER TAG 
  2133.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  2134.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  2135.     SELECT A    && use paymain
  2136.     n_rec = RECCOUNT()
  2137.     IF n_rec > 50 
  2138.        ** setup aray to hold id#s to delete
  2139.        DECLARE d_aray[n_rec]
  2140.        i_dex =1
  2141.        GO TOP 
  2142.        SCAN WHILE i_dex <= (n_rec -50)
  2143.           ** put id#s in aray
  2144.           d_aray[i_dex] = A->CUSTNO
  2145.           DELETE
  2146.           i_dex = i_dex +1
  2147.        ENDSCAN
  2148.           i_dex =1
  2149.           SELECT B       && use patcharg
  2150.                     
  2151.                     
  2152.                     
  2153.                     
  2154.                     
  2155.                     
  2156.                     
  2157.                         
  2158.                     
  2159.                     
  2160.                     
  2161.                     
  2162.                     
  2163.                     
  2164.                     
  2165.                     
  2166.                     
  2167.                     
  2168.                     
  2169.                     
  2170.                     
  2171.                     
  2172.                     
  2173.                     
  2174.                     
  2175.                     
  2176.                     
  2177.                     
  2178.                     
  2179.                     
  2180.                      
  2181.                     !
  2182.                     "
  2183.                     #
  2184.                     $
  2185.                     %
  2186.                     &
  2187.                     '
  2188.                     (
  2189.                     )
  2190.                     *
  2191.                     
  2192. E   *
  2193.                     ,
  2194.                     -
  2195.                     .
  2196.                     /
  2197.                     0
  2198.                     1
  2199.                     2
  2200.                     3
  2201.                     4
  2202.                     5
  2203.                     6
  2204.                     7
  2205.                     8
  2206.                     9
  2207.                     :
  2208.                     ;
  2209.                     <
  2210.                     =
  2211.                     >
  2212.                     ?
  2213.                     @
  2214.                     A
  2215.                     B
  2216.                     C
  2217.                     D
  2218.                     E
  2219.                     F
  2220.                     G
  2221.                     H
  2222.                     I
  2223.                     J
  2224.                     K
  2225.                     L
  2226.                     M
  2227.                     N
  2228.                     O
  2229.                     P
  2230.                     Q
  2231.                     R
  2232.                     S
  2233.                     T
  2234.                     
  2235. E   *
  2236.                     V
  2237.                     W
  2238.                     X
  2239.                     Y
  2240.                     Z
  2241.                     [
  2242.                     \
  2243.                     ]
  2244.                     ^
  2245.                     _
  2246.                     `
  2247.                     a
  2248.                     b
  2249.                     c
  2250.                     d
  2251.                     e
  2252.                     f
  2253.                     g
  2254.                     h
  2255.                     i
  2256.                     j
  2257.                     k
  2258.                     l
  2259.                     m
  2260.                     n
  2261.                     o
  2262.                     p
  2263.                     q
  2264.                     r
  2265.                     s
  2266.                     t
  2267.                     u
  2268.                     v
  2269.                     w
  2270.                     x
  2271.                     y
  2272.                     z
  2273.                     {
  2274.                     |
  2275.                     }
  2276.                     ~
  2277.                     
  2278. E   *
  2279.                     
  2280.                     
  2281.                     
  2282.                     
  2283.                     
  2284.                     
  2285.                     
  2286.                     
  2287.                     
  2288.                     
  2289.                     
  2290.                     
  2291.                     
  2292.                     
  2293.                     
  2294.                     
  2295.                     
  2296.                     
  2297.                     
  2298.                     
  2299.                     
  2300.                     
  2301.                     
  2302.                     
  2303.                     
  2304.                     
  2305.                     
  2306.                     
  2307.                     
  2308.                     
  2309.                     
  2310.                     
  2311.                     
  2312.                     
  2313.                     
  2314.                     
  2315.                     
  2316.                     
  2317.                     
  2318.                     
  2319.                     
  2320.                     
  2321. E   *
  2322.                     
  2323.                     
  2324.                     
  2325.                     
  2326.                     
  2327.                     
  2328.                     
  2329.                     
  2330.                     
  2331.                     
  2332.                     
  2333.                     
  2334.                     
  2335.                     
  2336.                     
  2337.                     
  2338.                     
  2339.                     
  2340.                     
  2341.                     
  2342.                     
  2343.                     
  2344.                     
  2345.                     
  2346.                     
  2347.                     
  2348.                     
  2349.                     
  2350.                     
  2351.                     
  2352.                     
  2353.                     
  2354.                     
  2355.                     
  2356.                     
  2357.                     
  2358.                     
  2359.                     
  2360.                     
  2361.                     
  2362.                     
  2363.                     
  2364. E   *
  2365.                     
  2366.                     
  2367.                     
  2368.                     
  2369.                     
  2370.                     
  2371.                     
  2372.                     
  2373.                     
  2374.                     
  2375.                     
  2376.                     
  2377.                     
  2378.                     
  2379.                     
  2380.                     
  2381.                     
  2382.                     
  2383.                     
  2384.                     
  2385.                     
  2386.                     
  2387.                     
  2388.                     
  2389.                     
  2390.                     
  2391.                     
  2392.                     
  2393.                     
  2394.                     
  2395.                     
  2396.                     
  2397.                     
  2398.                     
  2399.                     
  2400.                     
  2401.                     
  2402.                     
  2403.                     
  2404.                     
  2405.                     
  2406.                     
  2407. E       
  2408.                     
  2409.                     
  2410.                     
  2411.                     
  2412.                     
  2413.                     
  2414.                     
  2415.                     
  2416.                     
  2417.                     
  2418.                     
  2419.                     
  2420.                     
  2421.                     
  2422.                     
  2423.                     
  2424.                     
  2425.                     
  2426.                     
  2427.                     
  2428.                     
  2429.                     
  2430.                     
  2431.                     
  2432.                     
  2433.                     
  2434.                     
  2435.                     
  2436.                     
  2437.                     
  2438.                     
  2439.                     
  2440.                     
  2441.                     
  2442.                     
  2443.                     
  2444.                     
  2445.                     
  2446.                     
  2447.                     
  2448.                     
  2449.                     
  2450.                     
  2451.                     
  2452.                     
  2453.                     
  2454.                     
  2455.                     
  2456.  FORMAT
  2457.     RELEASE WINDOW W1
  2458.     CLEAR TYPEAHEAD
  2459.     SET ESCAPE ON 
  2460.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  2461.                 DBF(), MESSAGE()
  2462.     ***check for number of records ...limit = 50 
  2463.     n_rec = 0            &&  number of records
  2464.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  2465.     USE PATCHARG.DBF IN B ORDER TAG 
  2466.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  2467.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  2468.     SELECT A    && use paymain
  2469.     n_rec = RECCOUNT()
  2470.     IF n_rec > 50 
  2471.        ** setup aray to hold id#s to delete
  2472.        DECLARE d_aray[n_rec]
  2473.        i_dex =1
  2474.        GO TOP 
  2475.        SCAN WHILE i_dex <= (n_rec -50)
  2476.           ** put id#s in aray
  2477.           d_aray[i_dex] = A->CUSTNO
  2478.           DELETE
  2479.           i_dex = i_dex +1
  2480.        ENDSCAN
  2481.           i_dex =1
  2482.           SELECT B       && use patcharg
  2483.                     
  2484.                     
  2485.                     
  2486.                     
  2487.                     
  2488.                     
  2489.                     
  2490.                         
  2491.                     
  2492.                     
  2493.                     
  2494.                     
  2495.                     
  2496.                     
  2497.                     
  2498.                     
  2499.                     
  2500.                     
  2501.                     
  2502.                     
  2503.                     
  2504.                     
  2505.                     
  2506.                     
  2507.                     
  2508.                     
  2509.                     
  2510.                     
  2511.                     
  2512.                     
  2513.                      
  2514.                     !
  2515.                     "
  2516.                     #
  2517.                     $
  2518.                     %
  2519.                     &
  2520.                     '
  2521.                     (
  2522.                     )
  2523.                     *
  2524.                     
  2525. E   *
  2526.                     ,
  2527.                     -
  2528.                     .
  2529.                     /
  2530.                     0
  2531.                     1
  2532.                     2
  2533.                     3
  2534.                     4
  2535.                     5
  2536.                     6
  2537.                     7
  2538.                     8
  2539.                     9
  2540.                     :
  2541.                     ;
  2542.                     <
  2543.                     =
  2544.                     >
  2545.                     ?
  2546.                     @
  2547.                     A
  2548.                     B
  2549.                     C
  2550.                     D
  2551.                     E
  2552.                     F
  2553.                     G
  2554.                     H
  2555.                     I
  2556.                     J
  2557.                     K
  2558.                     L
  2559.                     M
  2560.                     N
  2561.                     O
  2562.                     P
  2563.                     Q
  2564.                     R
  2565.                     S
  2566.                     T
  2567.                     
  2568. E   *
  2569.                     V
  2570.                     W
  2571.                     X
  2572.                     Y
  2573.                     Z
  2574.                     [
  2575.                     \
  2576.                     ]
  2577.                     ^
  2578.                     _
  2579.                     `
  2580.                     a
  2581.                     b
  2582.                     c
  2583.                     d
  2584.                     e
  2585.                     f
  2586.                     g
  2587.                     h
  2588.                     i
  2589.                     j
  2590.                     k
  2591.                     l
  2592.                     m
  2593.                     n
  2594.                     o
  2595.                     p
  2596.                     q
  2597.                     r
  2598.                     s
  2599.                     t
  2600.                     u
  2601.                     v
  2602.                     w
  2603.                     x
  2604.                     y
  2605.                     z
  2606.                     {
  2607.                     |
  2608.                     }
  2609.                     ~
  2610.                     
  2611. E   *
  2612.                     
  2613.                     
  2614.                     
  2615.                     
  2616.                     
  2617.                     
  2618.                     
  2619.                     
  2620.                     
  2621.                     
  2622.                     
  2623.                     
  2624.                     
  2625.                     
  2626.                     
  2627.                     
  2628.                     
  2629.                     
  2630.                     
  2631.                     
  2632.                     
  2633.                     
  2634.                     
  2635.                     
  2636.                     
  2637.                     
  2638.                     
  2639.                     
  2640.                     
  2641.                     
  2642.                     
  2643.                     
  2644.                     
  2645.                     
  2646.                     
  2647.                     
  2648.                     
  2649.                     
  2650.                     
  2651.                     
  2652.                     
  2653.                     
  2654. E   *
  2655.                     
  2656.                     
  2657.                     
  2658.                     
  2659.                     
  2660.                     
  2661.                     
  2662.                     
  2663.                     
  2664.                     
  2665.                     
  2666.                     
  2667.                     
  2668.                     
  2669.                     
  2670.                     
  2671.                     
  2672.                     
  2673.                     
  2674.                     
  2675.                     
  2676.                     
  2677.                     
  2678.                     
  2679.                     
  2680.                     
  2681.                     
  2682.                     
  2683.                     
  2684.                     
  2685.                     
  2686.                     
  2687.                     
  2688.                     
  2689.                     
  2690.                     
  2691.                     
  2692.                     
  2693.                     
  2694.                     
  2695.                     
  2696.                     
  2697. E   *
  2698.                     
  2699.                     
  2700.                     
  2701.                     
  2702.                     
  2703.                     
  2704.                     
  2705.                     
  2706.                     
  2707.                     
  2708.                     
  2709.                     
  2710.                     
  2711.                     
  2712.                     
  2713.                     
  2714.                     
  2715.                     
  2716.                     
  2717.                     
  2718.                     
  2719.                     
  2720.                     
  2721.                     
  2722.                     
  2723.                     
  2724.                     
  2725.                     
  2726.                     
  2727.                     
  2728.                     
  2729.                     
  2730.                     
  2731.                     
  2732.                     
  2733.                     
  2734.                     
  2735.                     
  2736.                     
  2737.                     
  2738.                     
  2739.                     
  2740. E       
  2741.                     
  2742.                     
  2743.                     
  2744.                     
  2745.                     
  2746.                     
  2747.                     
  2748.                     
  2749.                     
  2750.                     
  2751.                     
  2752.                     
  2753.                     
  2754.                     
  2755.                     
  2756.                     
  2757.                     
  2758.                     
  2759.                     
  2760.                     
  2761.                     
  2762.                     
  2763.                     
  2764.                     
  2765.                     
  2766.                     
  2767.                     
  2768.                     
  2769.                     
  2770.                     
  2771.                     
  2772.                     
  2773.                     
  2774.                     
  2775.                     
  2776.                     
  2777.                     
  2778.                     
  2779.                     
  2780.                     
  2781.                     
  2782.                     
  2783.                     
  2784.                     
  2785.                     
  2786.                     
  2787.                     
  2788.                     
  2789.  FORMAT
  2790.     RELEASE WINDOW W1
  2791.     CLEAR TYPEAHEAD
  2792.     SET ESCAPE ON 
  2793.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  2794.                 DBF(), MESSAGE()
  2795.     ***check for number of records ...limit = 50 
  2796.     n_rec = 0            &&  number of records
  2797.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  2798.     USE PATCHARG.DBF IN B ORDER TAG 
  2799.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  2800.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  2801.     SELECT A    && use paymain
  2802.     n_rec = RECCOUNT()
  2803.     IF n_rec > 50 
  2804.        ** setup aray to hold id#s to delete
  2805.        DECLARE d_aray[n_rec]
  2806.        i_dex =1
  2807.        GO TOP 
  2808.        SCAN WHILE i_dex <= (n_rec -50)
  2809.           ** put id#s in aray
  2810.           d_aray[i_dex] = A->CUSTNO
  2811.           DELETE
  2812.           i_dex = i_dex +1
  2813.        ENDSCAN
  2814.           i_dex =1
  2815.           SELECT B       && use patcharg
  2816.                     
  2817.                     
  2818.                     
  2819.                     
  2820.                     
  2821.                     
  2822.                     
  2823.                         
  2824.                     
  2825.                     
  2826.                     
  2827.                     
  2828.                     
  2829.                     
  2830.                     
  2831.                     
  2832.                     
  2833.                     
  2834.                     
  2835.                     
  2836.                     
  2837.                     
  2838.                     
  2839.                     
  2840.                     
  2841.                     
  2842.                     
  2843.                     
  2844.                     
  2845.                     
  2846.                      
  2847.                     !
  2848.                     "
  2849.                     #
  2850.                     $
  2851.                     %
  2852.                     &
  2853.                     '
  2854.                     (
  2855.                     )
  2856.                     *
  2857.                     
  2858. E   *
  2859.                     ,
  2860.                     -
  2861.                     .
  2862.                     /
  2863.                     0
  2864.                     1
  2865.                     2
  2866.                     3
  2867.                     4
  2868.                     5
  2869.                     6
  2870.                     7
  2871.                     8
  2872.                     9
  2873.                     :
  2874.                     ;
  2875.                     <
  2876.                     =
  2877.                     >
  2878.                     ?
  2879.                     @
  2880.                     A
  2881.                     B
  2882.                     C
  2883.                     D
  2884.                     E
  2885.                     F
  2886.                     G
  2887.                     H
  2888.                     I
  2889.                     J
  2890.                     K
  2891.                     L
  2892.                     M
  2893.                     N
  2894.                     O
  2895.                     P
  2896.                     Q
  2897.                     R
  2898.                     S
  2899.                     T
  2900.                     
  2901. E   *
  2902.                     V
  2903.                     W
  2904.                     X
  2905.                     Y
  2906.                     Z
  2907.                     [
  2908.                     \
  2909.                     ]
  2910.                     ^
  2911.                     _
  2912.                     `
  2913.                     a
  2914.                     b
  2915.                     c
  2916.                     d
  2917.                     e
  2918.                     f
  2919.                     g
  2920.                     h
  2921.                     i
  2922.                     j
  2923.                     k
  2924.                     l
  2925.                     m
  2926.                     n
  2927.                     o
  2928.                     p
  2929.                     q
  2930.                     r
  2931.                     s
  2932.                     t
  2933.                     u
  2934.                     v
  2935.                     w
  2936.                     x
  2937.                     y
  2938.                     z
  2939.                     {
  2940.                     |
  2941.                     }
  2942.                     ~
  2943.                     
  2944. E   *
  2945.                     
  2946.                     
  2947.                     
  2948.                     
  2949.                     
  2950.                     
  2951.                     
  2952.                     
  2953.                     
  2954.                     
  2955.                     
  2956.                     
  2957.                     
  2958.                     
  2959.                     
  2960.                     
  2961.                     
  2962.                     
  2963.                     
  2964.                     
  2965.                     
  2966.                     
  2967.                     
  2968.                     
  2969.                     
  2970.                     
  2971.                     
  2972.                     
  2973.                     
  2974.                     
  2975.                     
  2976.                     
  2977.                     
  2978.                     
  2979.                     
  2980.                     
  2981.                     
  2982.                     
  2983.                     
  2984.                     
  2985.                     
  2986.                     
  2987. E   *
  2988.                     
  2989.                     
  2990.                     
  2991.                     
  2992.                     
  2993.                     
  2994.                     
  2995.                     
  2996.                     
  2997.                     
  2998.                     
  2999.                     
  3000.                     
  3001.                     
  3002.                     
  3003.                     
  3004.                     
  3005.                     
  3006.                     
  3007.                     
  3008.                     
  3009.                     
  3010.                     
  3011.                     
  3012.                     
  3013.                     
  3014.                     
  3015.                     
  3016.                     
  3017.                     
  3018.                     
  3019.                     
  3020.                     
  3021.                     
  3022.                     
  3023.                     
  3024.                     
  3025.                     
  3026.                     
  3027.                     
  3028.                     
  3029.                     
  3030. E   *
  3031.                     
  3032.                     
  3033.                     
  3034.                     
  3035.                     
  3036.                     
  3037.                     
  3038.                     
  3039.                     
  3040.                     
  3041.                     
  3042.                     
  3043.                     
  3044.                     
  3045.                     
  3046.                     
  3047.                     
  3048.                     
  3049.                     
  3050.                     
  3051.                     
  3052.                     
  3053.                     
  3054.                     
  3055.                     
  3056.                     
  3057.                     
  3058.                     
  3059.                     
  3060.                     
  3061.                     
  3062.                     
  3063.                     
  3064.                     
  3065.                     
  3066.                     
  3067.                     
  3068.                     
  3069.                     
  3070.                     
  3071.                     
  3072.                     
  3073. E       
  3074.                     
  3075.                     
  3076.                     
  3077.                     
  3078.                     
  3079.                     
  3080.                     
  3081.                     
  3082.                     
  3083.                     
  3084.                     
  3085.                     
  3086.                     
  3087.                     
  3088.                     
  3089.                     
  3090.                     
  3091.                     
  3092.                     
  3093.                     
  3094.                     
  3095.                     
  3096.                     
  3097.                     
  3098.                     
  3099.                     
  3100.                     
  3101.                     
  3102.                     
  3103.                     
  3104.                     
  3105.                     
  3106.                     
  3107.                     
  3108.                     
  3109.                     
  3110.                     
  3111.                     
  3112.                     
  3113.                     
  3114.                     
  3115.                     
  3116.                     
  3117.                     
  3118.                     
  3119.                     
  3120.                     
  3121.                     
  3122.  FORMAT
  3123.     RELEASE WINDOW W1
  3124.     CLEAR TYPEAHEAD
  3125.     SET ESCAPE ON 
  3126.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  3127.                 DBF(), MESSAGE()
  3128.     ***check for number of records ...limit = 50 
  3129.     n_rec = 0            &&  number of records
  3130.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  3131.     USE PATCHARG.DBF IN B ORDER TAG 
  3132.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  3133.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  3134.     SELECT A    && use paymain
  3135.     n_rec = RECCOUNT()
  3136.     IF n_rec > 50 
  3137.        ** setup aray to hold id#s to delete
  3138.        DECLARE d_aray[n_rec]
  3139.        i_dex =1
  3140.        GO TOP 
  3141.        SCAN WHILE i_dex <= (n_rec -50)
  3142.           ** put id#s in aray
  3143.           d_aray[i_dex] = A->CUSTNO
  3144.           DELETE
  3145.           i_dex = i_dex +1
  3146.        ENDSCAN
  3147.           i_dex =1
  3148.           SELECT B       && use patcharg
  3149. XXXXXXXXX           
  3150. XXXXXXXXX           
  3151. XXXXXXXXX           
  3152. XXXXXXXXX           
  3153. XXXXXXXXX           
  3154. XXXXXXXXX           
  3155. XXXXXXXXX           
  3156. XXXXXXXXX               
  3157. XXXXXXXXX           
  3158. XXXXXXXXX           
  3159. XXXXXXXXX           
  3160. XXXXXXXXX           
  3161. XXXXXXXXX           
  3162. XXXXXXXXX           
  3163. XXXXXXXXX           
  3164. XXXXXXXXX           
  3165. XXXXXXXXX           
  3166. XXXXXXXXX           
  3167. XXXXXXXXX           
  3168. XXXXXXXXX           
  3169. XXXXXXXXX           
  3170. XXXXXXXXX           
  3171. XXXXXXXXX           
  3172. XXXXXXXXX           
  3173. XXXXXXXXX           
  3174. XXXXXXXXX           
  3175. XXXXXXXXX           
  3176. XXXXXXXXX           
  3177. XXXXXXXXX           
  3178. XXXXXXXXX           
  3179. XXXXXXXXX            
  3180. XXXXXXXXX           !
  3181. XXXXXXXXX           "
  3182. XXXXXXXXX           #
  3183. XXXXXXXXX           $
  3184. XXXXXXXXX           %
  3185. XXXXXXXXX           &
  3186. XXXXXXXXX           '
  3187. XXXXXXXXX           (
  3188. XXXXXXXXX           )
  3189. XXXXXXXXX           *
  3190. XXXXXXXXX           
  3191. E   *
  3192. XXXXXXXXX           ,
  3193. XXXXXXXXX           -
  3194. XXXXXXXXX           .
  3195. XXXXXXXXX           /
  3196. XXXXXXXXX           0
  3197. XXXXXXXXX           1
  3198. XXXXXXXXX           2
  3199. XXXXXXXXX           3
  3200. XXXXXXXXX           4
  3201. XXXXXXXXX           5
  3202. XXXXXXXXX           6
  3203. XXXXXXXXX           7
  3204. XXXXXXXXX           8
  3205. XXXXXXXXX           9
  3206. XXXXXXXXX           :
  3207. XXXXXXXXX           ;
  3208. XXXXXXXXX           <
  3209. XXXXXXXXX           =
  3210. XXXXXXXXX           >
  3211. XXXXXXXXX           ?
  3212. XXXXXXXXX           @
  3213. XXXXXXXXX           A
  3214. XXXXXXXXX           B
  3215. XXXXXXXXX           C
  3216. XXXXXXXXX           D
  3217. XXXXXXXXX           E
  3218. XXXXXXXXX           F
  3219. XXXXXXXXX           G
  3220. XXXXXXXXX           H
  3221. XXXXXXXXX           I
  3222. XXXXXXXXX           J
  3223. XXXXXXXXX           K
  3224. XXXXXXXXX           L
  3225. XXXXXXXXX           M
  3226. XXXXXXXXX           N
  3227. XXXXXXXXX           O
  3228. XXXXXXXXX           P
  3229. XXXXXXXXX           Q
  3230. XXXXXXXXX           R
  3231. XXXXXXXXX           S
  3232. XXXXXXXXX           T
  3233. XXXXXXXXX           
  3234. E   *
  3235. XXXXXXXXX           V
  3236. XXXXXXXXX           W
  3237. XXXXXXXXX           X
  3238. XXXXXXXXX           Y
  3239. XXXXXXXXX           Z
  3240. XXXXXXXXX           [
  3241. XXXXXXXXX           \
  3242. XXXXXXXXX           ]
  3243. XXXXXXXXX           ^
  3244. XXXXXXXXX           _
  3245. XXXXXXXXX           `
  3246. XXXXXXXXX           a
  3247. XXXXXXXXX           b
  3248. XXXXXXXXX           c
  3249. XXXXXXXXX           d
  3250. XXXXXXXXX           e
  3251. XXXXXXXXX           f
  3252. XXXXXXXXX           g
  3253. XXXXXXXXX           h
  3254. XXXXXXXXX           i
  3255. XXXXXXXXX           j
  3256. XXXXXXXXX           k
  3257. XXXXXXXXX           l
  3258. XXXXXXXXX           m
  3259. XXXXXXXXX           n
  3260. XXXXXXXXX           o
  3261. XXXXXXXXX           p
  3262. XXXXXXXXX           q
  3263. XXXXXXXXX           r
  3264. XXXXXXXXX           s
  3265. XXXXXXXXX           t
  3266. XXXXXXXXX           u
  3267. XXXXXXXXX           v
  3268. XXXXXXXXX           w
  3269. XXXXXXXXX           x
  3270. XXXXXXXXX           y
  3271. XXXXXXXXX           z
  3272. XXXXXXXXX           {
  3273. XXXXXXXXX           |
  3274. XXXXXXXXX           }
  3275. XXXXXXXXX           ~
  3276. XXXXXXXXX           
  3277. E   *
  3278. XXXXXXXXX           
  3279. XXXXXXXXX           
  3280. XXXXXXXXX           
  3281. XXXXXXXXX           
  3282. XXXXXXXXX           
  3283. XXXXXXXXX           
  3284. XXXXXXXXX           
  3285. XXXXXXXXX           
  3286. XXXXXXXXX           
  3287. XXXXXXXXX           
  3288. XXXXXXXXX           
  3289. XXXXXXXXX           
  3290. XXXXXXXXX           
  3291. XXXXXXXXX           
  3292. XXXXXXXXX           
  3293. XXXXXXXXX           
  3294. XXXXXXXXX           
  3295. XXXXXXXXX           
  3296. XXXXXXXXX           
  3297. XXXXXXXXX           
  3298. XXXXXXXXX           
  3299. XXXXXXXXX           
  3300. XXXXXXXXX           
  3301. XXXXXXXXX           
  3302. XXXXXXXXX           
  3303. XXXXXXXXX           
  3304. XXXXXXXXX           
  3305. XXXXXXXXX           
  3306. XXXXXXXXX           
  3307. XXXXXXXXX           
  3308. XXXXXXXXX           
  3309. XXXXXXXXX           
  3310. XXXXXXXXX           
  3311. XXXXXXXXX           
  3312. XXXXXXXXX           
  3313. XXXXXXXXX           
  3314. XXXXXXXXX           
  3315. XXXXXXXXX           
  3316. XXXXXXXXX           
  3317. XXXXXXXXX           
  3318. XXXXXXXXX           
  3319. XXXXXXXXX           
  3320. E   *
  3321. XXXXXXXXX           
  3322. XXXXXXXXX           
  3323. XXXXXXXXX           
  3324. XXXXXXXXX           
  3325. XXXXXXXXX           
  3326. XXXXXXXXX           
  3327. XXXXXXXXX           
  3328. XXXXXXXXX           
  3329. XXXXXXXXX           
  3330. XXXXXXXXX           
  3331. XXXXXXXXX           
  3332. XXXXXXXXX           
  3333. XXXXXXXXX           
  3334. XXXXXXXXX           
  3335. XXXXXXXXX           
  3336. XXXXXXXXX           
  3337. XXXXXXXXX           
  3338. XXXXXXXXX           
  3339. XXXXXXXXX           
  3340. XXXXXXXXX           
  3341. XXXXXXXXX           
  3342. XXXXXXXXX           
  3343. XXXXXXXXX           
  3344. XXXXXXXXX           
  3345. XXXXXXXXX           
  3346. XXXXXXXXX           
  3347. XXXXXXXXX           
  3348. XXXXXXXXX           
  3349. XXXXXXXXX           
  3350. XXXXXXXXX           
  3351. XXXXXXXXX           
  3352. XXXXXXXXX           
  3353. XXXXXXXXX           
  3354. XXXXXXXXX           
  3355. XXXXXXXXX           
  3356. XXXXXXXXX           
  3357. XXXXXXXXX           
  3358. XXXXXXXXX           
  3359. XXXXXXXXX           
  3360. XXXXXXXXX           
  3361. XXXXXXXXX           
  3362. XXXXXXXXX           
  3363. E   *
  3364. XXXXXXXXX           
  3365. XXXXXXXXX           
  3366. XXXXXXXXX           
  3367. XXXXXXXXX           
  3368. XXXXXXXXX           
  3369. XXXXXXXXX           
  3370. XXXXXXXXX           
  3371. XXXXXXXXX           
  3372. XXXXXXXXX           
  3373. XXXXXXXXX           
  3374. XXXXXXXXX           
  3375. XXXXXXXXX           
  3376. XXXXXXXXX           
  3377. XXXXXXXXX           
  3378. XXXXXXXXX           
  3379. XXXXXXXXX           
  3380. XXXXXXXXX           
  3381. XXXXXXXXX           
  3382. XXXXXXXXX           
  3383. XXXXXXXXX           
  3384. XXXXXXXXX           
  3385. XXXXXXXXX           
  3386. XXXXXXXXX           
  3387. XXXXXXXXX           
  3388. XXXXXXXXX           
  3389. XXXXXXXXX           
  3390. XXXXXXXXX           
  3391. XXXXXXXXX           
  3392. XXXXXXXXX           
  3393. XXXXXXXXX           
  3394. XXXXXXXXX           
  3395. XXXXXXXXX           
  3396. XXXXXXXXX           
  3397. XXXXXXXXX           
  3398. XXXXXXXXX           
  3399. XXXXXXXXX           
  3400. XXXXXXXXX           
  3401. XXXXXXXXX           
  3402. XXXXXXXXX           
  3403. XXXXXXXXX           
  3404. XXXXXXXXX           
  3405. XXXXXXXXX           
  3406. E       
  3407. XXXXXXXXX           
  3408. XXXXXXXXX           
  3409. XXXXXXXXX           
  3410. XXXXXXXXX           
  3411. XXXXXXXXX           
  3412. XXXXXXXXX           
  3413. XXXXXXXXX           
  3414. XXXXXXXXX           
  3415. XXXXXXXXX           
  3416. XXXXXXXXX           
  3417. XXXXXXXXX           
  3418. XXXXXXXXX           
  3419. XXXXXXXXX           
  3420. XXXXXXXXX           
  3421. XXXXXXXXX           
  3422. XXXXXXXXX           
  3423. XXXXXXXXX           
  3424. XXXXXXXXX           
  3425. XXXXXXXXX           
  3426. XXXXXXXXX           
  3427. XXXXXXXXX           
  3428. XXXXXXXXX           
  3429. XXXXXXXXX           
  3430. XXXXXXXXX           
  3431. XXXXXXXXX           
  3432. XXXXXXXXX           
  3433. XXXXXXXXX           
  3434. XXXXXXXXX           
  3435. XXXXXXXXX           
  3436. XXXXXXXXX           
  3437. XXXXXXXXX           
  3438. XXXXXXXXX           
  3439. XXXXXXXXX           
  3440. XXXXXXXXX           
  3441. XXXXXXXXX           
  3442. XXXXXXXXX           
  3443. XXXXXXXXX           
  3444. XXXXXXXXX           
  3445. XXXXXXXXX           
  3446. XXXXXXXXX           
  3447. XXXXXXXXX           
  3448. XXXXXXXXX           
  3449. XXXXXXXXX           
  3450. XXXXXXXXX           
  3451. XXXXXXXXX           
  3452. XXXXXXXXX           
  3453. XXXXXXXXX           
  3454. XXXXXXXXX           
  3455.  FORMAT
  3456.     RELEASE WINDOW W1
  3457.     CLEAR TYPEAHEAD
  3458.     SET ESCAPE ON 
  3459.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  3460.                 DBF(), MESSAGE()
  3461.     ***check for number of records ...limit = 50 
  3462.     n_rec = 0            &&  number of records
  3463.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  3464.     USE PATCHARG.DBF IN B ORDER TAG 
  3465.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  3466.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  3467.     SELECT A    && use paymain
  3468.     n_rec = RECCOUNT()
  3469.     IF n_rec > 50 
  3470.        ** setup aray to hold id#s to delete
  3471.        DECLARE d_aray[n_rec]
  3472.        i_dex =1
  3473.        GO TOP 
  3474.        SCAN WHILE i_dex <= (n_rec -50)
  3475.           ** put id#s in aray
  3476.           d_aray[i_dex] = A->CUSTNO
  3477.           DELETE
  3478.           i_dex = i_dex +1
  3479.        ENDSCAN
  3480.           i_dex =1
  3481.           SELECT B       && use patcharg
  3482. XXXXXXXXX           
  3483. XXXXXXXXX           
  3484. XXXXXXXXX           
  3485. XXXXXXXXX           
  3486. XXXXXXXXX           
  3487. XXXXXXXXX           
  3488. XXXXXXXXX           
  3489. XXXXXXXXX               
  3490. XXXXXXXXX           
  3491. XXXXXXXXX           
  3492. XXXXXXXXX           
  3493. XXXXXXXXX           
  3494. XXXXXXXXX           
  3495. XXXXXXXXX           
  3496. XXXXXXXXX           
  3497. XXXXXXXXX           
  3498. XXXXXXXXX           
  3499. XXXXXXXXX           
  3500. XXXXXXXXX           
  3501. XXXXXXXXX           
  3502. XXXXXXXXX           
  3503. XXXXXXXXX           
  3504. XXXXXXXXX           
  3505. XXXXXXXXX           
  3506. XXXXXXXXX           
  3507. XXXXXXXXX           
  3508. XXXXXXXXX           
  3509. XXXXXXXXX           
  3510. XXXXXXXXX           
  3511. XXXXXXXXX           
  3512. XXXXXXXXX            
  3513. XXXXXXXXX           !
  3514. XXXXXXXXX           "
  3515. XXXXXXXXX           #
  3516. XXXXXXXXX           $
  3517. XXXXXXXXX           %
  3518. XXXXXXXXX           &
  3519. XXXXXXXXX           '
  3520. XXXXXXXXX           (
  3521. XXXXXXXXX           )
  3522. XXXXXXXXX           *
  3523. XXXXXXXXX           
  3524. E   *
  3525. XXXXXXXXX           ,
  3526. XXXXXXXXX           -
  3527. XXXXXXXXX           .
  3528. XXXXXXXXX           /
  3529. XXXXXXXXX           0
  3530. XXXXXXXXX           1
  3531. XXXXXXXXX           2
  3532. XXXXXXXXX           3
  3533. XXXXXXXXX           4
  3534. XXXXXXXXX           5
  3535. XXXXXXXXX           6
  3536. XXXXXXXXX           7
  3537. XXXXXXXXX           8
  3538. XXXXXXXXX           9
  3539. XXXXXXXXX           :
  3540. XXXXXXXXX           ;
  3541. XXXXXXXXX           <
  3542. XXXXXXXXX           =
  3543. XXXXXXXXX           >
  3544. XXXXXXXXX           ?
  3545. XXXXXXXXX           @
  3546. XXXXXXXXX           A
  3547. XXXXXXXXX           B
  3548. XXXXXXXXX           C
  3549. XXXXXXXXX           D
  3550. XXXXXXXXX           E
  3551. XXXXXXXXX           F
  3552. XXXXXXXXX           G
  3553. XXXXXXXXX           H
  3554. XXXXXXXXX           I
  3555. XXXXXXXXX           J
  3556. XXXXXXXXX           K
  3557. XXXXXXXXX           L
  3558. XXXXXXXXX           M
  3559. XXXXXXXXX           N
  3560. XXXXXXXXX           O
  3561. XXXXXXXXX           P
  3562. XXXXXXXXX           Q
  3563. XXXXXXXXX           R
  3564. XXXXXXXXX           S
  3565. XXXXXXXXX           T
  3566. XXXXXXXXX           
  3567. E   *
  3568. XXXXXXXXX           V
  3569. XXXXXXXXX           W
  3570. XXXXXXXXX           X
  3571. XXXXXXXXX           Y
  3572. XXXXXXXXX           Z
  3573. XXXXXXXXX           [
  3574. XXXXXXXXX           \
  3575. XXXXXXXXX           ]
  3576. XXXXXXXXX           ^
  3577. XXXXXXXXX           _
  3578. XXXXXXXXX           `
  3579. XXXXXXXXX           a
  3580. XXXXXXXXX           b
  3581. XXXXXXXXX           c
  3582. XXXXXXXXX           d
  3583. XXXXXXXXX           e
  3584. XXXXXXXXX           f
  3585. XXXXXXXXX           g
  3586. XXXXXXXXX           h
  3587. XXXXXXXXX           i
  3588. XXXXXXXXX           j
  3589. XXXXXXXXX           k
  3590. XXXXXXXXX           l
  3591. XXXXXXXXX           m
  3592. XXXXXXXXX           n
  3593. XXXXXXXXX           o
  3594. XXXXXXXXX           p
  3595. XXXXXXXXX           q
  3596. XXXXXXXXX           r
  3597. XXXXXXXXX           s
  3598. XXXXXXXXX           t
  3599. XXXXXXXXX           u
  3600. XXXXXXXXX           v
  3601. XXXXXXXXX           w
  3602. XXXXXXXXX           x
  3603. XXXXXXXXX           y
  3604. XXXXXXXXX           z
  3605. XXXXXXXXX           {
  3606. XXXXXXXXX           |
  3607. XXXXXXXXX           }
  3608. XXXXXXXXX           ~
  3609. XXXXXXXXX           
  3610. E   *
  3611. XXXXXXXXX           
  3612. XXXXXXXXX           
  3613. XXXXXXXXX           
  3614. XXXXXXXXX           
  3615. XXXXXXXXX           
  3616. XXXXXXXXX           
  3617. XXXXXXXXX           
  3618. XXXXXXXXX           
  3619. XXXXXXXXX           
  3620. XXXXXXXXX           
  3621. XXXXXXXXX           
  3622. XXXXXXXXX           
  3623. XXXXXXXXX           
  3624. XXXXXXXXX           
  3625. XXXXXXXXX           
  3626. XXXXXXXXX           
  3627. XXXXXXXXX           
  3628. XXXXXXXXX           
  3629. XXXXXXXXX           
  3630. XXXXXXXXX           
  3631. XXXXXXXXX           
  3632. XXXXXXXXX           
  3633. XXXXXXXXX           
  3634. XXXXXXXXX           
  3635. XXXXXXXXX           
  3636. XXXXXXXXX           
  3637. XXXXXXXXX           
  3638. XXXXXXXXX           
  3639. XXXXXXXXX           
  3640. XXXXXXXXX           
  3641. XXXXXXXXX           
  3642. XXXXXXXXX           
  3643. XXXXXXXXX           
  3644. XXXXXXXXX           
  3645. XXXXXXXXX           
  3646. XXXXXXXXX           
  3647. XXXXXXXXX           
  3648. XXXXXXXXX           
  3649. XXXXXXXXX           
  3650. XXXXXXXXX           
  3651. XXXXXXXXX           
  3652. XXXXXXXXX           
  3653. E   *
  3654. XXXXXXXXX           
  3655. XXXXXXXXX           
  3656. XXXXXXXXX           
  3657. XXXXXXXXX           
  3658. XXXXXXXXX           
  3659. XXXXXXXXX           
  3660. XXXXXXXXX           
  3661. XXXXXXXXX           
  3662. XXXXXXXXX           
  3663. XXXXXXXXX           
  3664. XXXXXXXXX           
  3665. XXXXXXXXX           
  3666. XXXXXXXXX           
  3667. XXXXXXXXX           
  3668. XXXXXXXXX           
  3669. XXXXXXXXX           
  3670. XXXXXXXXX           
  3671. XXXXXXXXX           
  3672. XXXXXXXXX           
  3673. XXXXXXXXX           
  3674. XXXXXXXXX           
  3675. XXXXXXXXX           
  3676. XXXXXXXXX           
  3677. XXXXXXXXX           
  3678. XXXXXXXXX           
  3679. XXXXXXXXX           
  3680. XXXXXXXXX           
  3681. XXXXXXXXX           
  3682. XXXXXXXXX           
  3683. XXXXXXXXX           
  3684. XXXXXXXXX           
  3685. XXXXXXXXX           
  3686. XXXXXXXXX           
  3687. XXXXXXXXX           
  3688. XXXXXXXXX           
  3689. XXXXXXXXX           
  3690. XXXXXXXXX           
  3691. XXXXXXXXX           
  3692. XXXXXXXXX           
  3693. XXXXXXXXX           
  3694. XXXXXXXXX           
  3695. XXXXXXXXX           
  3696. E   *
  3697. XXXXXXXXX           
  3698. XXXXXXXXX           
  3699. XXXXXXXXX           
  3700. XXXXXXXXX           
  3701. XXXXXXXXX           
  3702. XXXXXXXXX           
  3703. XXXXXXXXX           
  3704. XXXXXXXXX           
  3705. XXXXXXXXX           
  3706. XXXXXXXXX           
  3707. XXXXXXXXX           
  3708. XXXXXXXXX           
  3709. XXXXXXXXX           
  3710. XXXXXXXXX           
  3711. XXXXXXXXX           
  3712. XXXXXXXXX           
  3713. XXXXXXXXX           
  3714. XXXXXXXXX           
  3715. XXXXXXXXX           
  3716. XXXXXXXXX           
  3717. XXXXXXXXX           
  3718. XXXXXXXXX           
  3719. XXXXXXXXX           
  3720. XXXXXXXXX           
  3721. XXXXXXXXX           
  3722. XXXXXXXXX           
  3723. XXXXXXXXX           
  3724. XXXXXXXXX           
  3725. XXXXXXXXX           
  3726. XXXXXXXXX           
  3727. XXXXXXXXX           
  3728. XXXXXXXXX           
  3729. XXXXXXXXX           
  3730. XXXXXXXXX           
  3731. XXXXXXXXX           
  3732. XXXXXXXXX           
  3733. XXXXXXXXX           
  3734. XXXXXXXXX           
  3735. XXXXXXXXX           
  3736. XXXXXXXXX           
  3737. XXXXXXXXX           
  3738. XXXXXXXXX           
  3739. E       
  3740. XXXXXXXXX           
  3741. XXXXXXXXX           
  3742. XXXXXXXXX           
  3743. XXXXXXXXX           
  3744. XXXXXXXXX           
  3745. XXXXXXXXX           
  3746. XXXXXXXXX           
  3747. XXXXXXXXX           
  3748. XXXXXXXXX           
  3749. XXXXXXXXX           
  3750. XXXXXXXXX           
  3751. XXXXXXXXX           
  3752. XXXXXXXXX           
  3753. XXXXXXXXX           
  3754. XXXXXXXXX           
  3755. XXXXXXXXX           
  3756. XXXXXXXXX           
  3757. XXXXXXXXX           
  3758. XXXXXXXXX           
  3759. XXXXXXXXX           
  3760. XXXXXXXXX           
  3761. XXXXXXXXX           
  3762. XXXXXXXXX           
  3763. XXXXXXXXX           
  3764. XXXXXXXXX           
  3765. XXXXXXXXX           
  3766. XXXXXXXXX           
  3767. XXXXXXXXX           
  3768. XXXXXXXXX           
  3769. XXXXXXXXX           
  3770. XXXXXXXXX           
  3771. XXXXXXXXX           
  3772. XXXXXXXXX           
  3773. XXXXXXXXX           
  3774. XXXXXXXXX           
  3775. XXXXXXXXX           
  3776. XXXXXXXXX           
  3777. XXXXXXXXX           
  3778. XXXXXXXXX           
  3779. XXXXXXXXX           
  3780. XXXXXXXXX           
  3781. XXXXXXXXX           
  3782. XXXXXXXXX           
  3783. XXXXXXXXX           
  3784. XXXXXXXXX           
  3785. XXXXXXXXX           
  3786. XXXXXXXXX           
  3787. XXXXXXXXX           
  3788.  FORMAT
  3789.     RELEASE WINDOW W1
  3790.     CLEAR TYPEAHEAD
  3791.     SET ESCAPE ON 
  3792.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  3793.                 DBF(), MESSAGE()
  3794.     ***check for number of records ...limit = 50 
  3795.     n_rec = 0            &&  number of records
  3796.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  3797.     USE PATCHARG.DBF IN B ORDER TAG 
  3798.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  3799.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  3800.     SELECT A    && use paymain
  3801.     n_rec = RECCOUNT()
  3802.     IF n_rec > 50 
  3803.        ** setup aray to hold id#s to delete
  3804.        DECLARE d_aray[n_rec]
  3805.        i_dex =1
  3806.        GO TOP 
  3807.        SCAN WHILE i_dex <= (n_rec -50)
  3808.           ** put id#s in aray
  3809.           d_aray[i_dex] = A->CUSTNO
  3810.           DELETE
  3811.           i_dex = i_dex +1
  3812.        ENDSCAN
  3813.           i_dex =1
  3814.           SELECT B       && use patcharg
  3815.                     
  3816.                     
  3817.                     
  3818.                     
  3819.                     
  3820.                     
  3821.                     
  3822.                         
  3823.                     
  3824.                     
  3825.                     
  3826.                     
  3827.                     
  3828.                     
  3829.                     
  3830.                     
  3831.                     
  3832.                     
  3833.                     
  3834.                     
  3835.                     
  3836.                     
  3837.                     
  3838.                     
  3839.                     
  3840.                     
  3841.                     
  3842.                     
  3843.                     
  3844.                     
  3845.                      
  3846.                     !
  3847.                     "
  3848.                     #
  3849.                     $
  3850.                     %
  3851.                     &
  3852.                     '
  3853.                     (
  3854.                     )
  3855.                     *
  3856.                     
  3857. E   *
  3858.                     ,
  3859.                     -
  3860.                     .
  3861.                     /
  3862.                     0
  3863.                     1
  3864.                     2
  3865.                     3
  3866.                     4
  3867.                     5
  3868.                     6
  3869.                     7
  3870.                     8
  3871.                     9
  3872.                     :
  3873.                     ;
  3874.                     <
  3875.                     =
  3876.                     >
  3877.                     ?
  3878.                     @
  3879.                     A
  3880.                     B
  3881.                     C
  3882.                     D
  3883.                     E
  3884.                     F
  3885.                     G
  3886.                     H
  3887.                     I
  3888.                     J
  3889.                     K
  3890.                     L
  3891.                     M
  3892.                     N
  3893.                     O
  3894.                     P
  3895.                     Q
  3896.                     R
  3897.                     S
  3898.                     T
  3899.                     
  3900. E   *
  3901.                     V
  3902.                     W
  3903.                     X
  3904.                     Y
  3905.                     Z
  3906.                     [
  3907.                     \
  3908.                     ]
  3909.                     ^
  3910.                     _
  3911.                     `
  3912.                     a
  3913.                     b
  3914.                     c
  3915.                     d
  3916.                     e
  3917.                     f
  3918.                     g
  3919.                     h
  3920.                     i
  3921.                     j
  3922.                     k
  3923.                     l
  3924.                     m
  3925.                     n
  3926.                     o
  3927.                     p
  3928.                     q
  3929.                     r
  3930.                     s
  3931.                     t
  3932.                     u
  3933.                     v
  3934.                     w
  3935.                     x
  3936.                     y
  3937.                     z
  3938.                     {
  3939.                     |
  3940.                     }
  3941.                     ~
  3942.                     
  3943. E   *
  3944.                     
  3945.                     
  3946.                     
  3947.                     
  3948.                     
  3949.                     
  3950.                     
  3951.                     
  3952.                     
  3953.                     
  3954.                     
  3955.                     
  3956.                     
  3957.                     
  3958.                     
  3959.                     
  3960.                     
  3961.                     
  3962.                     
  3963.                     
  3964.                     
  3965.                     
  3966.                     
  3967.                     
  3968.                     
  3969.                     
  3970.                     
  3971.                     
  3972.                     
  3973.                     
  3974.                     
  3975.                     
  3976.                     
  3977.                     
  3978.                     
  3979.                     
  3980.                     
  3981.                     
  3982.                     
  3983.                     
  3984.                     
  3985.                     
  3986. E   *
  3987.                     
  3988.                     
  3989.                     
  3990.                     
  3991.                     
  3992.                     
  3993.                     
  3994.                     
  3995.                     
  3996.                     
  3997.                     
  3998.                     
  3999.                     
  4000.                     
  4001.                     
  4002.                     
  4003.                     
  4004.                     
  4005.                     
  4006.                     
  4007.                     
  4008.                     
  4009.                     
  4010.                     
  4011.                     
  4012.                     
  4013.                     
  4014.                     
  4015.                     
  4016.                     
  4017.                     
  4018.                     
  4019.                     
  4020.                     
  4021.                     
  4022.                     
  4023.                     
  4024.                     
  4025.                     
  4026.                     
  4027.                     
  4028.                     
  4029. E   *
  4030.                     
  4031.                     
  4032.                     
  4033.                     
  4034.                     
  4035.                     
  4036.                     
  4037.                     
  4038.                     
  4039.                     
  4040.                     
  4041.                     
  4042.                     
  4043.                     
  4044.                     
  4045.                     
  4046.                     
  4047.                     
  4048.                     
  4049.                     
  4050.                     
  4051.                     
  4052.                     
  4053.                     
  4054.                     
  4055.                     
  4056.                     
  4057.                     
  4058.                     
  4059.                     
  4060.                     
  4061.                     
  4062.                     
  4063.                     
  4064.                     
  4065.                     
  4066.                     
  4067.                     
  4068.                     
  4069.                     
  4070.                     
  4071.                     
  4072. E       
  4073.                     
  4074.                     
  4075.                     
  4076.                     
  4077.                     
  4078.                     
  4079.                     
  4080.                     
  4081.                     
  4082.                     
  4083.                     
  4084.                     
  4085.                     
  4086.                     
  4087.                     
  4088.                     
  4089.                     
  4090.                     
  4091.                     
  4092.                     
  4093.                     
  4094.                     
  4095.                     
  4096.                     
  4097.                     
  4098.                     
  4099.                     
  4100.                     
  4101.                     
  4102.                     
  4103.                     
  4104.                     
  4105.                     
  4106.                     
  4107.                     
  4108.                     
  4109.                     
  4110.                     
  4111.                     
  4112.                     
  4113.                     
  4114.                     
  4115.                     
  4116.                     
  4117.                     
  4118.                     
  4119.                     
  4120.                     
  4121.  FORMAT
  4122.     RELEASE WINDOW W1
  4123.     CLEAR TYPEAHEAD
  4124.     SET ESCAPE ON 
  4125.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  4126.                 DBF(), MESSAGE()
  4127.     ***check for number of records ...limit = 50 
  4128.     n_rec = 0            &&  number of records
  4129.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  4130.     USE PATCHARG.DBF IN B ORDER TAG 
  4131.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  4132.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  4133.     SELECT A    && use paymain
  4134.     n_rec = RECCOUNT()
  4135.     IF n_rec > 50 
  4136.        ** setup aray to hold id#s to delete
  4137.        DECLARE d_aray[n_rec]
  4138.        i_dex =1
  4139.        GO TOP 
  4140.        SCAN WHILE i_dex <= (n_rec -50)
  4141.           ** put id#s in aray
  4142.           d_aray[i_dex] = A->CUSTNO
  4143.           DELETE
  4144.           i_dex = i_dex +1
  4145.        ENDSCAN
  4146.           i_dex =1
  4147.           SELECT B       && use patcharg
  4148.                     
  4149.                     
  4150.                     
  4151.                     
  4152.                     
  4153.                     
  4154.                     
  4155.                         
  4156.                     
  4157.                     
  4158.                     
  4159.                     
  4160.                     
  4161.                     
  4162.                     
  4163.                     
  4164.                     
  4165.                     
  4166.                     
  4167.                     
  4168.                     
  4169.                     
  4170.                     
  4171.                     
  4172.                     
  4173.                     
  4174.                     
  4175.                     
  4176.                     
  4177.                     
  4178.                      
  4179.                     !
  4180.                     "
  4181.                     #
  4182.                     $
  4183.                     %
  4184.                     &
  4185.                     '
  4186.                     (
  4187.                     )
  4188.                     *
  4189.                     
  4190. E   *
  4191.                     ,
  4192.                     -
  4193.                     .
  4194.                     /
  4195.                     0
  4196.                     1
  4197.                     2
  4198.                     3
  4199.                     4
  4200.                     5
  4201.                     6
  4202.                     7
  4203.                     8
  4204.                     9
  4205.                     :
  4206.                     ;
  4207.                     <
  4208.                     =
  4209.                     >
  4210.                     ?
  4211.                     @
  4212.                     A
  4213.                     B
  4214.                     C
  4215.                     D
  4216.                     E
  4217.                     F
  4218.                     G
  4219.                     H
  4220.                     I
  4221.                     J
  4222.                     K
  4223.                     L
  4224.                     M
  4225.                     N
  4226.                     O
  4227.                     P
  4228.                     Q
  4229.                     R
  4230.                     S
  4231.                     T
  4232.                     
  4233. E   *
  4234.                     V
  4235.                     W
  4236.                     X
  4237.                     Y
  4238.                     Z
  4239.                     [
  4240.                     \
  4241.                     ]
  4242.                     ^
  4243.                     _
  4244.                     `
  4245.                     a
  4246.                     b
  4247.                     c
  4248.                     d
  4249.                     e
  4250.                     f
  4251.                     g
  4252.                     h
  4253.                     i
  4254.                     j
  4255.                     k
  4256.                     l
  4257.                     m
  4258.                     n
  4259.                     o
  4260.                     p
  4261.                     q
  4262.                     r
  4263.                     s
  4264.                     t
  4265.                     u
  4266.                     v
  4267.                     w
  4268.                     x
  4269.                     y
  4270.                     z
  4271.                     {
  4272.                     |
  4273.                     }
  4274.                     ~
  4275.                     
  4276. E   *
  4277.                     
  4278.                     
  4279.                     
  4280.                     
  4281.                     
  4282.                     
  4283.                     
  4284.                     
  4285.                     
  4286.                     
  4287.                     
  4288.                     
  4289.                     
  4290.                     
  4291.                     
  4292.                     
  4293.                     
  4294.                     
  4295.                     
  4296.                     
  4297.                     
  4298.                     
  4299.                     
  4300.                     
  4301.                     
  4302.                     
  4303.                     
  4304.                     
  4305.                     
  4306.                     
  4307.                     
  4308.                     
  4309.                     
  4310.                     
  4311.                     
  4312.                     
  4313.                     
  4314.                     
  4315.                     
  4316.                     
  4317.                     
  4318.                     
  4319. E   *
  4320.                     
  4321.                     
  4322.                     
  4323.                     
  4324.                     
  4325.                     
  4326.                     
  4327.                     
  4328.                     
  4329.                     
  4330.                     
  4331.                     
  4332.                     
  4333.                     
  4334.                     
  4335.                     
  4336.                     
  4337.                     
  4338.                     
  4339.                     
  4340.                     
  4341.                     
  4342.                     
  4343.                     
  4344.                     
  4345.                     
  4346.                     
  4347.                     
  4348.                     
  4349.                     
  4350.                     
  4351.                     
  4352.                     
  4353.                     
  4354.                     
  4355.                     
  4356.                     
  4357.                     
  4358.                     
  4359.                     
  4360.                     
  4361.                     
  4362. E   *
  4363.                     
  4364.                     
  4365.                     
  4366.                     
  4367.                     
  4368.                     
  4369.                     
  4370.                     
  4371.                     
  4372.                     
  4373.                     
  4374.                     
  4375.                     
  4376.                     
  4377.                     
  4378.                     
  4379.                     
  4380.                     
  4381.                     
  4382.                     
  4383.                     
  4384.                     
  4385.                     
  4386.                     
  4387.                     
  4388.                     
  4389.                     
  4390.                     
  4391.                     
  4392.                     
  4393.                     
  4394.                     
  4395.                     
  4396.                     
  4397.                     
  4398.                     
  4399.                     
  4400.                     
  4401.                     
  4402.                     
  4403.                     
  4404.                     
  4405. E       
  4406.                     
  4407.                     
  4408.                     
  4409.                     
  4410.                     
  4411.                     
  4412.                     
  4413.                     
  4414.                     
  4415.                     
  4416.                     
  4417.                     
  4418.                     
  4419.                     
  4420.                     
  4421.                     
  4422.                     
  4423.                     
  4424.                     
  4425.                     
  4426.                     
  4427.                     
  4428.                     
  4429.                     
  4430.                     
  4431.                     
  4432.                     
  4433.                     
  4434.                     
  4435.                     
  4436.                     
  4437.                     
  4438.                     
  4439.                     
  4440.                     
  4441.                     
  4442.                     
  4443.                     
  4444.                     
  4445.                     
  4446.                     
  4447.                     
  4448.                     
  4449.                     
  4450.                     
  4451.                     
  4452.                     
  4453.                     
  4454.  FORMAT
  4455.     RELEASE WINDOW W1
  4456.     CLEAR TYPEAHEAD
  4457.     SET ESCAPE ON 
  4458.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  4459.                 DBF(), MESSAGE()
  4460.     ***check for number of records ...limit = 50 
  4461.     n_rec = 0            &&  number of records
  4462.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  4463.     USE PATCHARG.DBF IN B ORDER TAG 
  4464.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  4465.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  4466.     SELECT A    && use paymain
  4467.     n_rec = RECCOUNT()
  4468.     IF n_rec > 50 
  4469.        ** setup aray to hold id#s to delete
  4470.        DECLARE d_aray[n_rec]
  4471.        i_dex =1
  4472.        GO TOP 
  4473.        SCAN WHILE i_dex <= (n_rec -50)
  4474.           ** put id#s in aray
  4475.           d_aray[i_dex] = A->CUSTNO
  4476.           DELETE
  4477.           i_dex = i_dex +1
  4478.        ENDSCAN
  4479.           i_dex =1
  4480.           SELECT B       && use patcharg
  4481.                     
  4482.                     
  4483.                     
  4484.                     
  4485.                     
  4486.                     
  4487.                     
  4488.                         
  4489.                     
  4490.                     
  4491.                     
  4492.                     
  4493.                     
  4494.                     
  4495.                     
  4496.                     
  4497.                     
  4498.                     
  4499.                     
  4500.                     
  4501.                     
  4502.                     
  4503.                     
  4504.                     
  4505.                     
  4506.                     
  4507.                     
  4508.                     
  4509.                     
  4510.                     
  4511.                      
  4512.                     !
  4513.                     "
  4514.                     #
  4515.                     $
  4516.                     %
  4517.                     &
  4518.                     '
  4519.                     (
  4520.                     )
  4521.                     *
  4522.                     
  4523. E   *
  4524.                     ,
  4525.                     -
  4526.                     .
  4527.                     /
  4528.                     0
  4529.                     1
  4530.                     2
  4531.                     3
  4532.                     4
  4533.                     5
  4534.                     6
  4535.                     7
  4536.                     8
  4537.                     9
  4538.                     :
  4539.                     ;
  4540.                     <
  4541.                     =
  4542.                     >
  4543.                     ?
  4544.                     @
  4545.                     A
  4546.                     B
  4547.                     C
  4548.                     D
  4549.                     E
  4550.                     F
  4551.                     G
  4552.                     H
  4553.                     I
  4554.                     J
  4555.                     K
  4556.                     L
  4557.                     M
  4558.                     N
  4559.                     O
  4560.                     P
  4561.                     Q
  4562.                     R
  4563.                     S
  4564.                     T
  4565.                     
  4566. E   *
  4567.                     V
  4568.                     W
  4569.                     X
  4570.                     Y
  4571.                     Z
  4572.                     [
  4573.                     \
  4574.                     ]
  4575.                     ^
  4576.                     _
  4577.                     `
  4578.                     a
  4579.                     b
  4580.                     c
  4581.                     d
  4582.                     e
  4583.                     f
  4584.                     g
  4585.                     h
  4586.                     i
  4587.                     j
  4588.                     k
  4589.                     l
  4590.                     m
  4591.                     n
  4592.                     o
  4593.                     p
  4594.                     q
  4595.                     r
  4596.                     s
  4597.                     t
  4598.                     u
  4599.                     v
  4600.                     w
  4601.                     x
  4602.                     y
  4603.                     z
  4604.                     {
  4605.                     |
  4606.                     }
  4607.                     ~
  4608.                     
  4609. E   *
  4610.                     
  4611.                     
  4612.                     
  4613.                     
  4614.                     
  4615.                     
  4616.                     
  4617.                     
  4618.                     
  4619.                     
  4620.                     
  4621.                     
  4622.                     
  4623.                     
  4624.                     
  4625.                     
  4626.                     
  4627.                     
  4628.                     
  4629.                     
  4630.                     
  4631.                     
  4632.                     
  4633.                     
  4634.                     
  4635.                     
  4636.                     
  4637.                     
  4638.                     
  4639.                     
  4640.                     
  4641.                     
  4642.                     
  4643.                     
  4644.                     
  4645.                     
  4646.                     
  4647.                     
  4648.                     
  4649.                     
  4650.                     
  4651.                     
  4652. E   *
  4653.                     
  4654.                     
  4655.                     
  4656.                     
  4657.                     
  4658.                     
  4659.                     
  4660.                     
  4661.                     
  4662.                     
  4663.                     
  4664.                     
  4665.                     
  4666.                     
  4667.                     
  4668.                     
  4669.                     
  4670.                     
  4671.                     
  4672.                     
  4673.                     
  4674.                     
  4675.                     
  4676.                     
  4677.                     
  4678.                     
  4679.                     
  4680.                     
  4681.                     
  4682.                     
  4683.                     
  4684.                     
  4685.                     
  4686.                     
  4687.                     
  4688.                     
  4689.                     
  4690.                     
  4691.                     
  4692.                     
  4693.                     
  4694.                     
  4695. E   *
  4696.                     
  4697.                     
  4698.                     
  4699.                     
  4700.                     
  4701.                     
  4702.                     
  4703.                     
  4704.                     
  4705.                     
  4706.                     
  4707.                     
  4708.                     
  4709.                     
  4710.                     
  4711.                     
  4712.                     
  4713.                     
  4714.                     
  4715.                     
  4716.                     
  4717.                     
  4718.                     
  4719.                     
  4720.                     
  4721.                     
  4722.                     
  4723.                     
  4724.                     
  4725.                     
  4726.                     
  4727.                     
  4728.                     
  4729.                     
  4730.                     
  4731.                     
  4732.                     
  4733.                     
  4734.                     
  4735.                     
  4736.                     
  4737.                     
  4738. E       
  4739.                     
  4740.                     
  4741.                     
  4742.                     
  4743.                     
  4744.                     
  4745.                     
  4746.                     
  4747.                     
  4748.                     
  4749.                     
  4750.                     
  4751.                     
  4752.                     
  4753.                     
  4754.                     
  4755.                     
  4756.                     
  4757.                     
  4758.                     
  4759.                     
  4760.                     
  4761.                     
  4762.                     
  4763.                     
  4764.                     
  4765.                     
  4766.                     
  4767.                     
  4768.                     
  4769.                     
  4770.                     
  4771.                     
  4772.                     
  4773.                     
  4774.                     
  4775.                     
  4776.                     
  4777.                     
  4778.                     
  4779.                     
  4780.                     
  4781.                     
  4782.                     
  4783.                     
  4784.                     
  4785.                     
  4786.                     
  4787.  FORMAT
  4788.     RELEASE WINDOW W1
  4789.     CLEAR TYPEAHEAD
  4790.     SET ESCAPE ON 
  4791.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  4792.                 DBF(), MESSAGE()
  4793.     ***check for number of records ...limit = 50 
  4794.     n_rec = 0            &&  number of records
  4795.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  4796.     USE PATCHARG.DBF IN B ORDER TAG 
  4797.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  4798.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  4799.     SELECT A    && use paymain
  4800.     n_rec = RECCOUNT()
  4801.     IF n_rec > 50 
  4802.        ** setup aray to hold id#s to delete
  4803.        DECLARE d_aray[n_rec]
  4804.        i_dex =1
  4805.        GO TOP 
  4806.        SCAN WHILE i_dex <= (n_rec -50)
  4807.           ** put id#s in aray
  4808.           d_aray[i_dex] = A->CUSTNO
  4809.           DELETE
  4810.           i_dex = i_dex +1
  4811.        ENDSCAN
  4812.           i_dex =1
  4813.           SELECT B       && use patcharg
  4814.                     
  4815.                     
  4816.                     
  4817.                     
  4818.                     
  4819.                     
  4820.                     
  4821.                         
  4822.                     
  4823.                     
  4824.                     
  4825.                     
  4826.                     
  4827.                     
  4828.                     
  4829.                     
  4830.                     
  4831.                     
  4832.                     
  4833.                     
  4834.                     
  4835.                     
  4836.                     
  4837.                     
  4838.                     
  4839.                     
  4840.                     
  4841.                     
  4842.                     
  4843.                     
  4844.                      
  4845.                     !
  4846.                     "
  4847.                     #
  4848.                     $
  4849.                     %
  4850.                     &
  4851.                     '
  4852.                     (
  4853.                     )
  4854.                     *
  4855.                     
  4856. E   *
  4857.                     ,
  4858.                     -
  4859.                     .
  4860.                     /
  4861.                     0
  4862.                     1
  4863.                     2
  4864.                     3
  4865.                     4
  4866.                     5
  4867.                     6
  4868.                     7
  4869.                     8
  4870.                     9
  4871.                     :
  4872.                     ;
  4873.                     <
  4874.                     =
  4875.                     >
  4876.                     ?
  4877.                     @
  4878.                     A
  4879.                     B
  4880.                     C
  4881.                     D
  4882.                     E
  4883.                     F
  4884.                     G
  4885.                     H
  4886.                     I
  4887.                     J
  4888.                     K
  4889.                     L
  4890.                     M
  4891.                     N
  4892.                     O
  4893.                     P
  4894.                     Q
  4895.                     R
  4896.                     S
  4897.                     T
  4898.                     
  4899. E   *
  4900.                     V
  4901.                     W
  4902.                     X
  4903.                     Y
  4904.                     Z
  4905.                     [
  4906.                     \
  4907.                     ]
  4908.                     ^
  4909.                     _
  4910.                     `
  4911.                     a
  4912.                     b
  4913.                     c
  4914.                     d
  4915.                     e
  4916.                     f
  4917.                     g
  4918.                     h
  4919.                     i
  4920.                     j
  4921.                     k
  4922.                     l
  4923.                     m
  4924.                     n
  4925.                     o
  4926.                     p
  4927.                     q
  4928.                     r
  4929.                     s
  4930.                     t
  4931.                     u
  4932.                     v
  4933.                     w
  4934.                     x
  4935.                     y
  4936.                     z
  4937.                     {
  4938.                     |
  4939.                     }
  4940.                     ~
  4941.                     
  4942. E   *
  4943.                     
  4944.                     
  4945.                     
  4946.                     
  4947.                     
  4948.                     
  4949.                     
  4950.                     
  4951.                     
  4952.                     
  4953.                     
  4954.                     
  4955.                     
  4956.                     
  4957.                     
  4958.                     
  4959.                     
  4960.                     
  4961.                     
  4962.                     
  4963.                     
  4964.                     
  4965.                     
  4966.                     
  4967.                     
  4968.                     
  4969.                     
  4970.                     
  4971.                     
  4972.                     
  4973.                     
  4974.                     
  4975.                     
  4976.                     
  4977.                     
  4978.                     
  4979.                     
  4980.                     
  4981.                     
  4982.                     
  4983.                     
  4984.                     
  4985. E   *
  4986.                     
  4987.                     
  4988.                     
  4989.                     
  4990.                     
  4991.                     
  4992.                     
  4993.                     
  4994.                     
  4995.                     
  4996.                     
  4997.                     
  4998.                     
  4999.                     
  5000.                     
  5001.                     
  5002.                     
  5003.                     
  5004.                     
  5005.                     
  5006.                     
  5007.                     
  5008.                     
  5009.                     
  5010.                     
  5011.                     
  5012.                     
  5013.                     
  5014.                     
  5015.                     
  5016.                     
  5017.                     
  5018.                     
  5019.                     
  5020.                     
  5021.                     
  5022.                     
  5023.                     
  5024.                     
  5025.                     
  5026.                     
  5027.                     
  5028. E   *
  5029.                     
  5030.                     
  5031.                     
  5032.                     
  5033.                     
  5034.                     
  5035.                     
  5036.                     
  5037.                     
  5038.                     
  5039.                     
  5040.                     
  5041.                     
  5042.                     
  5043.                     
  5044.                     
  5045.                     
  5046.                     
  5047.                     
  5048.                     
  5049.                     
  5050.                     
  5051.                     
  5052.                     
  5053.                     
  5054.                     
  5055.                     
  5056.                     
  5057.                     
  5058.                     
  5059.                     
  5060.                     
  5061.                     
  5062.                     
  5063.                     
  5064.                     
  5065.                     
  5066.                     
  5067.                     
  5068.                     
  5069.                     
  5070.                     
  5071. E       
  5072.                     
  5073.                     
  5074.                     
  5075.                     
  5076.                     
  5077.                     
  5078.                     
  5079.                     
  5080.                     
  5081.                     
  5082.                     
  5083.                     
  5084.                     
  5085.                     
  5086.                     
  5087.                     
  5088.                     
  5089.                     
  5090.                     
  5091.                     
  5092.                     
  5093.                     
  5094.                     
  5095.                     
  5096.                     
  5097.                     
  5098.                     
  5099.                     
  5100.                     
  5101.                     
  5102.                     
  5103.                     
  5104.                     
  5105.                     
  5106.                     
  5107.                     
  5108.                     
  5109.                     
  5110.                     
  5111.                     
  5112.                     
  5113.                     
  5114.                     
  5115.                      
  5116.                     "
  5117.                     $
  5118.                     &
  5119.                     (
  5120.  FORMAT
  5121.     RELEASE WINDOW W1
  5122.     CLEAR TYPEAHEAD
  5123.     SET ESCAPE ON 
  5124.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  5125.                 DBF(), MESSAGE()
  5126.     ***check for number of records ...limit = 50 
  5127.     n_rec = 0            &&  number of records
  5128.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  5129.     USE PATCHARG.DBF IN B ORDER TAG 
  5130.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  5131.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  5132.     SELECT A    && use paymain
  5133.     n_rec = RECCOUNT()
  5134.     IF n_rec > 50 
  5135.        ** setup aray to hold id#s to delete
  5136.        DECLARE d_aray[n_rec]
  5137.        i_dex =1
  5138.        GO TOP 
  5139.        SCAN WHILE i_dex <= (n_rec -50)
  5140.           ** put id#s in aray
  5141.           d_aray[i_dex] = A->CUSTNO
  5142.           DELETE
  5143.           i_dex = i_dex +1
  5144.        ENDSCAN
  5145.           i_dex =1
  5146.           SELECT B       && use patcharg
  5147.                     
  5148.                     
  5149.                     
  5150.                     
  5151.                     
  5152.                     
  5153.                     
  5154.                         
  5155.                     
  5156.                     
  5157.                     
  5158.                     
  5159.                     
  5160.                     
  5161.                     
  5162.                     
  5163.                     
  5164.                     
  5165.                     
  5166.                     
  5167.                     
  5168.                     
  5169.                     
  5170.                     
  5171.                     
  5172.                     
  5173.                     
  5174.                     
  5175.                     
  5176.                     
  5177.                      
  5178.                     !
  5179.                     "
  5180.                     #
  5181.                     $
  5182.                     %
  5183.                     &
  5184.                     '
  5185.                     (
  5186.                     )
  5187.                     *
  5188.                     
  5189. E   *
  5190.                     ,
  5191.                     -
  5192.                     .
  5193.                     /
  5194.                     0
  5195.                     1
  5196.                     2
  5197.                     3
  5198.                     4
  5199.                     5
  5200.                     6
  5201.                     7
  5202.                     8
  5203.                     9
  5204.                     :
  5205.                     ;
  5206.                     <
  5207.                     =
  5208.                     >
  5209.                     ?
  5210.                     @
  5211.                     A
  5212.                     B
  5213.                     C
  5214.                     D
  5215.                     E
  5216.                     F
  5217.                     G
  5218.                     H
  5219.                     I
  5220.                     J
  5221.                     K
  5222.                     L
  5223.                     M
  5224.                     N
  5225.                     O
  5226.                     P
  5227.                     Q
  5228.                     R
  5229.                     S
  5230.                     T
  5231.                     
  5232. E   *
  5233.                     V
  5234.                     W
  5235.                     X
  5236.                     Y
  5237.                     Z
  5238.                     [
  5239.                     \
  5240.                     ]
  5241.                     ^
  5242.                     _
  5243.                     `
  5244.                     a
  5245.                     b
  5246.                     c
  5247.                     d
  5248.                     e
  5249.                     f
  5250.                     g
  5251.                     h
  5252.                     i
  5253.                     j
  5254.                     k
  5255.                     l
  5256.                     m
  5257.                     n
  5258.                     o
  5259.                     p
  5260.                     q
  5261.                     r
  5262.                     s
  5263.                     t
  5264.                     u
  5265.                     v
  5266.                     w
  5267.                     x
  5268.                     y
  5269.                     z
  5270.                     {
  5271.                     |
  5272.                     }
  5273.                     ~
  5274.                     
  5275. E   *
  5276.                     
  5277.                     
  5278.                     
  5279.                     
  5280.                     
  5281.                     
  5282.                     
  5283.                     
  5284.                     
  5285.                     
  5286.                     
  5287.                     
  5288.                     
  5289.                     
  5290.                     
  5291.                     
  5292.                     
  5293.                     
  5294.                     
  5295.                     
  5296.                     
  5297.                     
  5298.                     
  5299.                     
  5300.                     
  5301.                     
  5302.                     
  5303.                     
  5304.                     
  5305.                     
  5306.                     
  5307.                     
  5308.                     
  5309.                     
  5310.                     
  5311.                     
  5312.                     
  5313.                     
  5314.                     
  5315.                     
  5316.                     
  5317.                     
  5318. E   *
  5319.                     
  5320.                     
  5321.                     
  5322.                     
  5323.                     
  5324.                     
  5325.                     
  5326.                     
  5327.                     
  5328.                     
  5329.                     
  5330.                     
  5331.                     
  5332.                     
  5333.                     
  5334.                     
  5335.                     
  5336.                     
  5337.                     
  5338.                     
  5339.                     
  5340.                     
  5341.                     
  5342.                     
  5343.                     
  5344.                     
  5345.                     
  5346.                     
  5347.                     
  5348.                     
  5349.                     
  5350.                     
  5351.                     
  5352.                     
  5353.                     
  5354.                     
  5355.                     
  5356.                     
  5357.                     
  5358.                     
  5359.                     
  5360.                     
  5361. E   *
  5362.                     
  5363.                     
  5364.                     
  5365.                     
  5366.                     
  5367.                     
  5368.                     
  5369.                     
  5370.                     
  5371.                     
  5372.                     
  5373.                     
  5374.                     
  5375.                     
  5376.                     
  5377.                     
  5378.                     
  5379.                     
  5380.                     
  5381.                     
  5382.                     
  5383.                     
  5384.                     
  5385.                     
  5386.                     
  5387.                     
  5388.                     
  5389.                     
  5390.                     
  5391.                     
  5392.                     
  5393.                     
  5394.                     
  5395.                     
  5396.                     
  5397.                     
  5398.                     
  5399.                     
  5400.                     
  5401.                     
  5402.                     
  5403.                     
  5404. E       
  5405.                     
  5406.                     
  5407.                     
  5408.                     
  5409.                     
  5410.                     
  5411.                     
  5412.                     
  5413.                     
  5414.                     
  5415.                     
  5416.                     
  5417.                     
  5418.                     
  5419.                     
  5420.                     
  5421.                     
  5422.                     
  5423.                     
  5424.                     
  5425.                     
  5426.                     
  5427.                     
  5428.                     
  5429.                     
  5430.                     
  5431.                     
  5432.                     
  5433.                     
  5434.                     
  5435.                     
  5436.                     
  5437.                     
  5438.                     
  5439.                     
  5440.                     
  5441.                     
  5442.                     
  5443.                     
  5444.                     
  5445.                     
  5446.                     
  5447.                     .
  5448.                     0
  5449.                     2
  5450.                     4
  5451.                     6
  5452.                     8
  5453.  FORMAT
  5454.     RELEASE WINDOW W1
  5455.     CLEAR TYPEAHEAD
  5456.     SET ESCAPE ON 
  5457.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  5458.                 DBF(), MESSAGE()
  5459.     ***check for number of records ...limit = 50 
  5460.     n_rec = 0            &&  number of records
  5461.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  5462.     USE PATCHARG.DBF IN B ORDER TAG 
  5463.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  5464.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  5465.     SELECT A    && use paymain
  5466.     n_rec = RECCOUNT()
  5467.     IF n_rec > 50 
  5468.        ** setup aray to hold id#s to delete
  5469.        DECLARE d_aray[n_rec]
  5470.        i_dex =1
  5471.        GO TOP 
  5472.        SCAN WHILE i_dex <= (n_rec -50)
  5473.           ** put id#s in aray
  5474.           d_aray[i_dex] = A->CUSTNO
  5475.           DELETE
  5476.           i_dex = i_dex +1
  5477.        ENDSCAN
  5478.           i_dex =1
  5479.           SELECT B       && use patcharg
  5480.                     
  5481.                     
  5482.                     
  5483.                     
  5484.                     
  5485.                     
  5486.                     
  5487.                         
  5488.                     
  5489.                     
  5490.                     
  5491.                     
  5492.                     
  5493.                     
  5494.                     
  5495.                     
  5496.                     
  5497.                     
  5498.                     
  5499.                     
  5500.                     
  5501.                     
  5502.                     
  5503.                     
  5504.                     
  5505.                     
  5506.                     
  5507.                     
  5508.                     
  5509.                     
  5510.                      
  5511.                     !
  5512.                     "
  5513.                     #
  5514.                     $
  5515.                     %
  5516.                     &
  5517.                     '
  5518.                     (
  5519.                     )
  5520.                     *
  5521.                     
  5522. E   *
  5523.                     ,
  5524.                     -
  5525.                     .
  5526.                     /
  5527.                     0
  5528.                     1
  5529.                     2
  5530.                     3
  5531.                     4
  5532.                     5
  5533.                     6
  5534.                     7
  5535.                     8
  5536.                     9
  5537.                     :
  5538.                     ;
  5539.                     <
  5540.                     =
  5541.                     >
  5542.                     ?
  5543.                     @
  5544.                     A
  5545.                     B
  5546.                     C
  5547.                     D
  5548.                     E
  5549.                     F
  5550.                     G
  5551.                     H
  5552.                     I
  5553.                     J
  5554.                     K
  5555.                     L
  5556.                     M
  5557.                     N
  5558.                     O
  5559.                     P
  5560.                     Q
  5561.                     R
  5562.                     S
  5563.                     T
  5564.                     
  5565. E   *
  5566.                     V
  5567.                     W
  5568.                     X
  5569.                     Y
  5570.                     Z
  5571.                     [
  5572.                     \
  5573.                     ]
  5574.                     ^
  5575.                     _
  5576.                     `
  5577.                     a
  5578.                     b
  5579.                     c
  5580.                     d
  5581.                     e
  5582.                     f
  5583.                     g
  5584.                     h
  5585.                     i
  5586.                     j
  5587.                     k
  5588.                     l
  5589.                     m
  5590.                     n
  5591.                     o
  5592.                     p
  5593.                     q
  5594.                     r
  5595.                     s
  5596.                     t
  5597.                     u
  5598.                     v
  5599.                     w
  5600.                     x
  5601.                     y
  5602.                     z
  5603.                     {
  5604.                     |
  5605.                     }
  5606.                     ~
  5607.                     
  5608. E   *
  5609.                     
  5610.                     
  5611.                     
  5612.                     
  5613.                     
  5614.                     
  5615.                     
  5616.                     
  5617.                     
  5618.                     
  5619.                     
  5620.                     
  5621.                     
  5622.                     
  5623.                     
  5624.                     
  5625.                     
  5626.                     
  5627.                     
  5628.                     
  5629.                     
  5630.                     
  5631.                     
  5632.                     
  5633.                     
  5634.                     
  5635.                     
  5636.                     
  5637.                     
  5638.                     
  5639.                     
  5640.                     
  5641.                     
  5642.                     
  5643.                     
  5644.                     
  5645.                     
  5646.                     
  5647.                     
  5648.                     
  5649.                     
  5650.                     
  5651. E   *
  5652.                     
  5653.                     
  5654.                     
  5655.                     
  5656.                     
  5657.                     
  5658.                     
  5659.                     
  5660.                     
  5661.                     
  5662.                     
  5663.                     
  5664.                     
  5665.                     
  5666.                     
  5667.                     
  5668.                     
  5669.                     
  5670.                     
  5671.                     
  5672.                     
  5673.                     
  5674.                     
  5675.                     
  5676.                     
  5677.                     
  5678.                     
  5679.                     
  5680.                     
  5681.                     
  5682.                     
  5683.                     
  5684.                     
  5685.                     
  5686.                     
  5687.                     
  5688.                     
  5689.                     
  5690.                     
  5691.                     
  5692.                     
  5693.                     
  5694. E   *
  5695.                     
  5696.                     
  5697.                     
  5698.                     
  5699.                     
  5700.                     
  5701.                     
  5702.                     
  5703.                     
  5704.                     
  5705.                     
  5706.                     
  5707.                     
  5708.                     
  5709.                     
  5710.                     
  5711.                     
  5712.                     
  5713.                     
  5714.                     
  5715.                     
  5716.                     
  5717.                     
  5718.                     
  5719.                     
  5720.                     
  5721.                     
  5722.                     
  5723.                     
  5724.                     
  5725.                     
  5726.                     
  5727.                     
  5728.                     
  5729.                     
  5730.                     
  5731.                     
  5732.                     
  5733.                     
  5734.                     
  5735.                     
  5736.                     
  5737. E       
  5738.                     
  5739.                     
  5740.                     
  5741.                     
  5742.                     
  5743.                     
  5744.                     
  5745.                     
  5746.                     
  5747.                     
  5748.                     
  5749.                     
  5750.                     
  5751.                     
  5752.                     
  5753.                     
  5754.                     
  5755.                     
  5756.                     
  5757.                     
  5758.                     
  5759.                     
  5760.                     
  5761.                     
  5762.                     
  5763.                     
  5764.                     
  5765.                     
  5766.                     
  5767.                     
  5768.                     
  5769.                     
  5770.                     
  5771.                     
  5772.                     
  5773.                     
  5774.                     
  5775.                     
  5776.                     
  5777.                     
  5778.                     
  5779.                     
  5780.                     >
  5781.                     @
  5782.                     B
  5783.                     D
  5784.                     F
  5785.                     H
  5786.  FORMAT
  5787.     RELEASE WINDOW W1
  5788.     CLEAR TYPEAHEAD
  5789.     SET ESCAPE ON 
  5790.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  5791.                 DBF(), MESSAGE()
  5792.     ***check for number of records ...limit = 50 
  5793.     n_rec = 0            &&  number of records
  5794.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  5795.     USE PATCHARG.DBF IN B ORDER TAG 
  5796.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  5797.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  5798.     SELECT A    && use paymain
  5799.     n_rec = RECCOUNT()
  5800.     IF n_rec > 50 
  5801.        ** setup aray to hold id#s to delete
  5802.        DECLARE d_aray[n_rec]
  5803.        i_dex =1
  5804.        GO TOP 
  5805.        SCAN WHILE i_dex <= (n_rec -50)
  5806.           ** put id#s in aray
  5807.           d_aray[i_dex] = A->CUSTNO
  5808.           DELETE
  5809.           i_dex = i_dex +1
  5810.        ENDSCAN
  5811.           i_dex =1
  5812.           SELECT B       && use patcharg
  5813.                     
  5814.                     
  5815.                     
  5816.                     
  5817.                     
  5818.                     
  5819.                     
  5820.                         
  5821.                     
  5822.                     
  5823.                     
  5824.                     
  5825.                     
  5826.                     
  5827.                     
  5828.                     
  5829.                     
  5830.                     
  5831.                     
  5832.                     
  5833.                     
  5834.                     
  5835.                     
  5836.                     
  5837.                     
  5838.                     
  5839.                     
  5840.                     
  5841.                     
  5842.                     
  5843.                      
  5844.                     !
  5845.                     "
  5846.                     #
  5847.                     $
  5848.                     %
  5849.                     &
  5850.                     '
  5851.                     (
  5852.                     )
  5853.                     *
  5854.                     
  5855. E   *
  5856.                     ,
  5857.                     -
  5858.                     .
  5859.                     /
  5860.                     0
  5861.                     1
  5862.                     2
  5863.                     3
  5864.                     4
  5865.                     5
  5866.                     6
  5867.                     7
  5868.                     8
  5869.                     9
  5870.                     :
  5871.                     ;
  5872.                     <
  5873.                     =
  5874.                     >
  5875.                     ?
  5876.                     @
  5877.                     A
  5878.                     B
  5879.                     C
  5880.                     D
  5881.                     E
  5882.                     F
  5883.                     G
  5884.                     H
  5885.                     I
  5886.                     J
  5887.                     K
  5888.                     L
  5889.                     M
  5890.                     N
  5891.                     O
  5892.                     P
  5893.                     Q
  5894.                     R
  5895.                     S
  5896.                     T
  5897.                     
  5898. E   *
  5899.                     V
  5900.                     W
  5901.                     X
  5902.                     Y
  5903.                     Z
  5904.                     [
  5905.                     \
  5906.                     ]
  5907.                     ^
  5908.                     _
  5909.                     `
  5910.                     a
  5911.                     b
  5912.                     c
  5913.                     d
  5914.                     e
  5915.                     f
  5916.                     g
  5917.                     h
  5918.                     i
  5919.                     j
  5920.                     k
  5921.                     l
  5922.                     m
  5923.                     n
  5924.                     o
  5925.                     p
  5926.                     q
  5927.                     r
  5928.                     s
  5929.                     t
  5930.                     u
  5931.                     v
  5932.                     w
  5933.                     x
  5934.                     y
  5935.                     z
  5936.                     {
  5937.                     |
  5938.                     }
  5939.                     ~
  5940.                     
  5941. E   *
  5942.                     
  5943.                     
  5944.                     
  5945.                     
  5946.                     
  5947.                     
  5948.                     
  5949.                     
  5950.                     
  5951.                     
  5952.                     
  5953.                     
  5954.                     
  5955.                     
  5956.                     
  5957.                     
  5958.                     
  5959.                     
  5960.                     
  5961.                     
  5962.                     
  5963.                     
  5964.                     
  5965.                     
  5966.                     
  5967.                     
  5968.                     
  5969.                     
  5970.                     
  5971.                     
  5972.                     
  5973.                     
  5974.                     
  5975.                     
  5976.                     
  5977.                     
  5978.                     
  5979.                     
  5980.                     
  5981.                     
  5982.                     
  5983.                     
  5984. E   *
  5985.                     
  5986.                     
  5987.                     
  5988.                     
  5989.                     
  5990.                     
  5991.                     
  5992.                     
  5993.                     
  5994.                     
  5995.                     
  5996.                     
  5997.                     
  5998.                     
  5999.                     
  6000.                     
  6001.                     
  6002.                     
  6003.                     
  6004.                     
  6005.                     
  6006.                     
  6007.                     
  6008.                     
  6009.                     
  6010.                     
  6011.                     
  6012.                     
  6013.                     
  6014.                     
  6015.                     
  6016.                     
  6017.                     
  6018.                     
  6019.                     
  6020.                     
  6021.                     
  6022.                     
  6023.                     
  6024.                     
  6025.                     
  6026.                     
  6027. E   *
  6028.                     
  6029.                     
  6030.                     
  6031.                     
  6032.                     
  6033.                     
  6034.                     
  6035.                     
  6036.                     
  6037.                     
  6038.                     
  6039.                     
  6040.                     
  6041.                     
  6042.                     
  6043.                     
  6044.                     
  6045.                     
  6046.                     
  6047.                     
  6048.                     
  6049.                     
  6050.                     
  6051.                     
  6052.                     
  6053.                     
  6054.                     
  6055.                     
  6056.                     
  6057.                     
  6058.                     
  6059.                     
  6060.                     
  6061.                     
  6062.                     
  6063.                     
  6064.                     
  6065.                     
  6066.                     
  6067.                     
  6068.                     
  6069.                     
  6070. E       
  6071.                     
  6072.                     
  6073.                     
  6074.                     
  6075.                     
  6076.                     
  6077.                     
  6078.                     
  6079.                     
  6080.                     
  6081.                     
  6082.                     
  6083.                     
  6084.                     
  6085.                     
  6086.                     
  6087.                     
  6088.                     
  6089.                     
  6090.                     
  6091.                     
  6092.                     
  6093.                     
  6094.                     
  6095.                     
  6096.                     
  6097.                     
  6098.                     
  6099.                     
  6100.                     
  6101.                     
  6102.                     
  6103.                     
  6104.                     
  6105.                     
  6106.                     
  6107.                     
  6108.                     
  6109.                     
  6110.                     
  6111.                     
  6112.                     
  6113.                     N
  6114.                     P
  6115.                     R
  6116.                     T
  6117.                     V
  6118.                     X
  6119.  FORMAT
  6120.     RELEASE WINDOW W1
  6121.     CLEAR TYPEAHEAD
  6122.     SET ESCAPE ON 
  6123.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  6124.                 DBF(), MESSAGE()
  6125.     ***check for number of records ...limit = 50 
  6126.     n_rec = 0            &&  number of records
  6127.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  6128.     USE PATCHARG.DBF IN B ORDER TAG 
  6129.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  6130.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  6131.     SELECT A    && use paymain
  6132.     n_rec = RECCOUNT()
  6133.     IF n_rec > 50 
  6134.        ** setup aray to hold id#s to delete
  6135.        DECLARE d_aray[n_rec]
  6136.        i_dex =1
  6137.        GO TOP 
  6138.        SCAN WHILE i_dex <= (n_rec -50)
  6139.           ** put id#s in aray
  6140.           d_aray[i_dex] = A->CUSTNO
  6141.           DELETE
  6142.           i_dex = i_dex +1
  6143.        ENDSCAN
  6144.           i_dex =1
  6145.           SELECT B       && use patcharg
  6146.                     
  6147.                     
  6148.                     
  6149.                     
  6150.                     
  6151.                     
  6152.                     
  6153.                         
  6154.                     
  6155.                     
  6156.                     
  6157.                     
  6158.                     
  6159.                     
  6160.                     
  6161.                     
  6162.                     
  6163.                     
  6164.                     
  6165.                     
  6166.                     
  6167.                     
  6168.                     
  6169.                     
  6170.                     
  6171.                     
  6172.                     
  6173.                     
  6174.                     
  6175.                     
  6176.                      
  6177.                     !
  6178.                     "
  6179.                     #
  6180.                     $
  6181.                     %
  6182.                     &
  6183.                     '
  6184.                     (
  6185.                     )
  6186.                     *
  6187.                     
  6188. E   *
  6189.                     ,
  6190.                     -
  6191.                     .
  6192.                     /
  6193.                     0
  6194.                     1
  6195.                     2
  6196.                     3
  6197.                     4
  6198.                     5
  6199.                     6
  6200.                     7
  6201.                     8
  6202.                     9
  6203.                     :
  6204.                     ;
  6205.                     <
  6206.                     =
  6207.                     >
  6208.                     ?
  6209.                     @
  6210.                     A
  6211.                     B
  6212.                     C
  6213.                     D
  6214.                     E
  6215.                     F
  6216.                     G
  6217.                     H
  6218.                     I
  6219.                     J
  6220.                     K
  6221.                     L
  6222.                     M
  6223.                     N
  6224.                     O
  6225.                     P
  6226.                     Q
  6227.                     R
  6228.                     S
  6229.                     T
  6230.                     
  6231. E   *
  6232.                     V
  6233.                     W
  6234.                     X
  6235.                     Y
  6236.                     Z
  6237.                     [
  6238.                     \
  6239.                     ]
  6240.                     ^
  6241.                     _
  6242.                     `
  6243.                     a
  6244.                     b
  6245.                     c
  6246.                     d
  6247.                     e
  6248.                     f
  6249.                     g
  6250.                     h
  6251.                     i
  6252.                     j
  6253.                     k
  6254.                     l
  6255.                     m
  6256.                     n
  6257.                     o
  6258.                     p
  6259.                     q
  6260.                     r
  6261.                     s
  6262.                     t
  6263.                     u
  6264.                     v
  6265.                     w
  6266.                     x
  6267.                     y
  6268.                     z
  6269.                     {
  6270.                     |
  6271.                     }
  6272.                     ~
  6273.                     
  6274. E   *
  6275.                     
  6276.                     
  6277.                     
  6278.                     
  6279.                     
  6280.                     
  6281.                     
  6282.                     
  6283.                     
  6284.                     
  6285.                     
  6286.                     
  6287.                     
  6288.                     
  6289.                     
  6290.                     
  6291.                     
  6292.                     
  6293.                     
  6294.                     
  6295.                     
  6296.                     
  6297.                     
  6298.                     
  6299.                     
  6300.                     
  6301.                     
  6302.                     
  6303.                     
  6304.                     
  6305.                     
  6306.                     
  6307.                     
  6308.                     
  6309.                     
  6310.                     
  6311.                     
  6312.                     
  6313.                     
  6314.                     
  6315.                     
  6316.                     
  6317. E   *
  6318.                     
  6319.                     
  6320.                     
  6321.                     
  6322.                     
  6323.                     
  6324.                     
  6325.                     
  6326.                     
  6327.                     
  6328.                     
  6329.                     
  6330.                     
  6331.                     
  6332.                     
  6333.                     
  6334.                     
  6335.                     
  6336.                     
  6337.                     
  6338.                     
  6339.                     
  6340.                     
  6341.                     
  6342.                     
  6343.                     
  6344.                     
  6345.                     
  6346.                     
  6347.                     
  6348.                     
  6349.                     
  6350.                     
  6351.                     
  6352.                     
  6353.                     
  6354.                     
  6355.                     
  6356.                     
  6357.                     
  6358.                     
  6359.                     
  6360. E   *
  6361.                     
  6362.                     
  6363.                     
  6364.                     
  6365.                     
  6366.                     
  6367.                     
  6368.                     
  6369.                     
  6370.                     
  6371.                     
  6372.                     
  6373.                     
  6374.                     
  6375.                     
  6376.                     
  6377.                     
  6378.                     
  6379.                     
  6380.                     
  6381.                     
  6382.                     
  6383.                     
  6384.                     
  6385.                     
  6386.                     
  6387.                     
  6388.                     
  6389.                     
  6390.                     
  6391.                     
  6392.                     
  6393.                     
  6394.                     
  6395.                     
  6396.                     
  6397.                     
  6398.                     
  6399.                     
  6400.                     
  6401.                     
  6402.                     
  6403. E       
  6404.                     
  6405.                     
  6406.                     
  6407.                     
  6408.                     
  6409.                     
  6410.                     
  6411.                     
  6412.                     
  6413.                     
  6414.                     
  6415.                     
  6416.                     
  6417.                     
  6418.                     
  6419.                     
  6420.                     
  6421.                     
  6422.                     
  6423.                     
  6424.                     
  6425.                     
  6426.                     
  6427.                     
  6428.                     
  6429.                     
  6430.                     
  6431.                     
  6432.                     
  6433.                     
  6434.                     
  6435.                     
  6436.                     
  6437.                     
  6438.                     
  6439.                     
  6440.                     
  6441.                     
  6442.                     
  6443.                     
  6444.                     
  6445.                     
  6446.                     ^
  6447.                     `
  6448.                     b
  6449.                     d
  6450.                     f
  6451.                     h
  6452.  FORMAT
  6453.     RELEASE WINDOW W1
  6454.     CLEAR TYPEAHEAD
  6455.     SET ESCAPE ON 
  6456.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  6457.                 DBF(), MESSAGE()
  6458.     ***check for number of records ...limit = 50 
  6459.     n_rec = 0            &&  number of records
  6460.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  6461.     USE PATCHARG.DBF IN B ORDER TAG 
  6462.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  6463.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  6464.     SELECT A    && use paymain
  6465.     n_rec = RECCOUNT()
  6466.     IF n_rec > 50 
  6467.        ** setup aray to hold id#s to delete
  6468.        DECLARE d_aray[n_rec]
  6469.        i_dex =1
  6470.        GO TOP 
  6471.        SCAN WHILE i_dex <= (n_rec -50)
  6472.           ** put id#s in aray
  6473.           d_aray[i_dex] = A->CUSTNO
  6474.           DELETE
  6475.           i_dex = i_dex +1
  6476.        ENDSCAN
  6477.           i_dex =1
  6478.           SELECT B       && use patcharg
  6479. XXXXXXXXX           
  6480. XXXXXXXXX           
  6481. XXXXXXXXX           
  6482. XXXXXXXXX           
  6483. XXXXXXXXX           
  6484. XXXXXXXXX           
  6485. XXXXXXXXX           
  6486. XXXXXXXXX               
  6487. XXXXXXXXX           
  6488. XXXXXXXXX           
  6489. XXXXXXXXX           
  6490. XXXXXXXXX           
  6491. XXXXXXXXX           
  6492. XXXXXXXXX           
  6493. XXXXXXXXX           
  6494. XXXXXXXXX           
  6495. XXXXXXXXX           
  6496. XXXXXXXXX           
  6497. XXXXXXXXX           
  6498. XXXXXXXXX           
  6499. XXXXXXXXX           
  6500. XXXXXXXXX           
  6501. XXXXXXXXX           
  6502. XXXXXXXXX           
  6503. XXXXXXXXX           
  6504. XXXXXXXXX           
  6505. XXXXXXXXX           
  6506. XXXXXXXXX           
  6507. XXXXXXXXX           
  6508. XXXXXXXXX           
  6509. XXXXXXXXX            
  6510. XXXXXXXXX           !
  6511. XXXXXXXXX           "
  6512. XXXXXXXXX           #
  6513. XXXXXXXXX           $
  6514. XXXXXXXXX           %
  6515. XXXXXXXXX           &
  6516. XXXXXXXXX           '
  6517. XXXXXXXXX           (
  6518. XXXXXXXXX           )
  6519. XXXXXXXXX           *
  6520. XXXXXXXXX           
  6521. E   *
  6522. XXXXXXXXX           ,
  6523. XXXXXXXXX           -
  6524. XXXXXXXXX           .
  6525. XXXXXXXXX           /
  6526. XXXXXXXXX           0
  6527. XXXXXXXXX           1
  6528. XXXXXXXXX           2
  6529. XXXXXXXXX           3
  6530. XXXXXXXXX           4
  6531. XXXXXXXXX           5
  6532. XXXXXXXXX           6
  6533. XXXXXXXXX           7
  6534. XXXXXXXXX           8
  6535. XXXXXXXXX           9
  6536. XXXXXXXXX           :
  6537. XXXXXXXXX           ;
  6538. XXXXXXXXX           <
  6539. XXXXXXXXX           =
  6540. XXXXXXXXX           >
  6541. XXXXXXXXX           ?
  6542. XXXXXXXXX           @
  6543. XXXXXXXXX           A
  6544. XXXXXXXXX           B
  6545. XXXXXXXXX           C
  6546. XXXXXXXXX           D
  6547. XXXXXXXXX           E
  6548. XXXXXXXXX           F
  6549. XXXXXXXXX           G
  6550. XXXXXXXXX           H
  6551. XXXXXXXXX           I
  6552. XXXXXXXXX           J
  6553. XXXXXXXXX           K
  6554. XXXXXXXXX           L
  6555. XXXXXXXXX           M
  6556. XXXXXXXXX           N
  6557. XXXXXXXXX           O
  6558. XXXXXXXXX           P
  6559. XXXXXXXXX           Q
  6560. XXXXXXXXX           R
  6561. XXXXXXXXX           S
  6562. XXXXXXXXX           T
  6563. XXXXXXXXX           
  6564. E   *
  6565. XXXXXXXXX           V
  6566. XXXXXXXXX           W
  6567. XXXXXXXXX           X
  6568. XXXXXXXXX           Y
  6569. XXXXXXXXX           Z
  6570. XXXXXXXXX           [
  6571. XXXXXXXXX           \
  6572. XXXXXXXXX           ]
  6573. XXXXXXXXX           ^
  6574. XXXXXXXXX           _
  6575. XXXXXXXXX           `
  6576. XXXXXXXXX           a
  6577. XXXXXXXXX           b
  6578. XXXXXXXXX           c
  6579. XXXXXXXXX           d
  6580. XXXXXXXXX           e
  6581. XXXXXXXXX           f
  6582. XXXXXXXXX           g
  6583. XXXXXXXXX           h
  6584. XXXXXXXXX           i
  6585. XXXXXXXXX           j
  6586. XXXXXXXXX           k
  6587. XXXXXXXXX           l
  6588. XXXXXXXXX           m
  6589. XXXXXXXXX           n
  6590. XXXXXXXXX           o
  6591. XXXXXXXXX           p
  6592. XXXXXXXXX           q
  6593. XXXXXXXXX           r
  6594. XXXXXXXXX           s
  6595. XXXXXXXXX           t
  6596. XXXXXXXXX           u
  6597. XXXXXXXXX           v
  6598. XXXXXXXXX           w
  6599. XXXXXXXXX           x
  6600. XXXXXXXXX           y
  6601. XXXXXXXXX           z
  6602. XXXXXXXXX           {
  6603. XXXXXXXXX           |
  6604. XXXXXXXXX           }
  6605. XXXXXXXXX           ~
  6606. XXXXXXXXX           
  6607. E   *
  6608. XXXXXXXXX           
  6609. XXXXXXXXX           
  6610. XXXXXXXXX           
  6611. XXXXXXXXX           
  6612. XXXXXXXXX           
  6613. XXXXXXXXX           
  6614. XXXXXXXXX           
  6615. XXXXXXXXX           
  6616. XXXXXXXXX           
  6617. XXXXXXXXX           
  6618. XXXXXXXXX           
  6619. XXXXXXXXX           
  6620. XXXXXXXXX           
  6621. XXXXXXXXX           
  6622. XXXXXXXXX           
  6623. XXXXXXXXX           
  6624. XXXXXXXXX           
  6625. XXXXXXXXX           
  6626. XXXXXXXXX           
  6627. XXXXXXXXX           
  6628. XXXXXXXXX           
  6629. XXXXXXXXX           
  6630. XXXXXXXXX           
  6631. XXXXXXXXX           
  6632. XXXXXXXXX           
  6633. XXXXXXXXX           
  6634. XXXXXXXXX           
  6635. XXXXXXXXX           
  6636. XXXXXXXXX           
  6637. XXXXXXXXX           
  6638. XXXXXXXXX           
  6639. XXXXXXXXX           
  6640. XXXXXXXXX           
  6641. XXXXXXXXX           
  6642. XXXXXXXXX           
  6643. XXXXXXXXX           
  6644. XXXXXXXXX           
  6645. XXXXXXXXX           
  6646. XXXXXXXXX           
  6647. XXXXXXXXX           
  6648. XXXXXXXXX           
  6649. XXXXXXXXX           
  6650. E   *
  6651. XXXXXXXXX           
  6652. XXXXXXXXX           
  6653. XXXXXXXXX           
  6654. XXXXXXXXX           
  6655. XXXXXXXXX           
  6656. XXXXXXXXX           
  6657. XXXXXXXXX           
  6658. XXXXXXXXX           
  6659. XXXXXXXXX           
  6660. XXXXXXXXX           
  6661. XXXXXXXXX           
  6662. XXXXXXXXX           
  6663. XXXXXXXXX           
  6664. XXXXXXXXX           
  6665. XXXXXXXXX           
  6666. XXXXXXXXX           
  6667. XXXXXXXXX           
  6668. XXXXXXXXX           
  6669. XXXXXXXXX           
  6670. XXXXXXXXX           
  6671. XXXXXXXXX           
  6672. XXXXXXXXX           
  6673. XXXXXXXXX           
  6674. XXXXXXXXX           
  6675. XXXXXXXXX           
  6676. XXXXXXXXX           
  6677. XXXXXXXXX           
  6678. XXXXXXXXX           
  6679. XXXXXXXXX           
  6680. XXXXXXXXX           
  6681. XXXXXXXXX           
  6682. XXXXXXXXX           
  6683. XXXXXXXXX           
  6684. XXXXXXXXX           
  6685. XXXXXXXXX           
  6686. XXXXXXXXX           
  6687. XXXXXXXXX           
  6688. XXXXXXXXX           
  6689. XXXXXXXXX           
  6690. XXXXXXXXX           
  6691. XXXXXXXXX           
  6692. XXXXXXXXX           
  6693. E   *
  6694. XXXXXXXXX           
  6695. XXXXXXXXX           
  6696. XXXXXXXXX           
  6697. XXXXXXXXX           
  6698. XXXXXXXXX           
  6699. XXXXXXXXX           
  6700. XXXXXXXXX           
  6701. XXXXXXXXX           
  6702. XXXXXXXXX           
  6703. XXXXXXXXX           
  6704. XXXXXXXXX           
  6705. XXXXXXXXX           
  6706. XXXXXXXXX           
  6707. XXXXXXXXX           
  6708. XXXXXXXXX           
  6709. XXXXXXXXX           
  6710. XXXXXXXXX           
  6711. XXXXXXXXX           
  6712. XXXXXXXXX           
  6713. XXXXXXXXX           
  6714. XXXXXXXXX           
  6715. XXXXXXXXX           
  6716. XXXXXXXXX           
  6717. XXXXXXXXX           
  6718. XXXXXXXXX           
  6719. XXXXXXXXX           
  6720. XXXXXXXXX           
  6721. XXXXXXXXX           
  6722. XXXXXXXXX           
  6723. XXXXXXXXX           
  6724. XXXXXXXXX           
  6725. XXXXXXXXX           
  6726. XXXXXXXXX           
  6727. XXXXXXXXX           
  6728. XXXXXXXXX           
  6729. XXXXXXXXX           
  6730. XXXXXXXXX           
  6731. XXXXXXXXX           
  6732. XXXXXXXXX           
  6733. XXXXXXXXX           
  6734. XXXXXXXXX           
  6735. XXXXXXXXX           
  6736. E       
  6737. XXXXXXXXX           
  6738. XXXXXXXXX           
  6739. XXXXXXXXX           
  6740. XXXXXXXXX           
  6741. XXXXXXXXX           
  6742. XXXXXXXXX           
  6743. XXXXXXXXX           
  6744. XXXXXXXXX           
  6745. XXXXXXXXX           
  6746. XXXXXXXXX           
  6747. XXXXXXXXX           
  6748. XXXXXXXXX           
  6749. XXXXXXXXX           
  6750. XXXXXXXXX           
  6751. XXXXXXXXX           
  6752. XXXXXXXXX           
  6753. XXXXXXXXX           
  6754. XXXXXXXXX           
  6755. XXXXXXXXX           
  6756. XXXXXXXXX           
  6757. XXXXXXXXX           
  6758. XXXXXXXXX           
  6759. XXXXXXXXX           
  6760. XXXXXXXXX           
  6761. XXXXXXXXX           
  6762. XXXXXXXXX           
  6763. XXXXXXXXX           
  6764. XXXXXXXXX           
  6765. XXXXXXXXX           
  6766. XXXXXXXXX           
  6767. XXXXXXXXX           
  6768. XXXXXXXXX           
  6769. XXXXXXXXX           
  6770. XXXXXXXXX           
  6771. XXXXXXXXX           
  6772. XXXXXXXXX           
  6773. XXXXXXXXX           
  6774. XXXXXXXXX           
  6775. XXXXXXXXX           
  6776. XXXXXXXXX           
  6777. XXXXXXXXX           
  6778. XXXXXXXXX           
  6779. XXXXXXXXX           n
  6780. XXXXXXXXX           p
  6781. XXXXXXXXX           r
  6782. XXXXXXXXX           t
  6783. XXXXXXXXX           v
  6784. XXXXXXXXX           x
  6785.  FORMAT
  6786.     RELEASE WINDOW W1
  6787.     CLEAR TYPEAHEAD
  6788.     SET ESCAPE ON 
  6789.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  6790.                 DBF(), MESSAGE()
  6791.     ***check for number of records ...limit = 50 
  6792.     n_rec = 0            &&  number of records
  6793.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  6794.     USE PATCHARG.DBF IN B ORDER TAG 
  6795.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  6796.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  6797.     SELECT A    && use paymain
  6798.     n_rec = RECCOUNT()
  6799.     IF n_rec > 50 
  6800.        ** setup aray to hold id#s to delete
  6801.        DECLARE d_aray[n_rec]
  6802.        i_dex =1
  6803.        GO TOP 
  6804.        SCAN WHILE i_dex <= (n_rec -50)
  6805.           ** put id#s in aray
  6806.           d_aray[i_dex] = A->CUSTNO
  6807.           DELETE
  6808.           i_dex = i_dex +1
  6809.        ENDSCAN
  6810.           i_dex =1
  6811.           SELECT B       && use patcharg
  6812. XXXXXXXXX           
  6813. XXXXXXXXX           
  6814. XXXXXXXXX           
  6815. XXXXXXXXX           
  6816. XXXXXXXXX           
  6817. XXXXXXXXX           
  6818. XXXXXXXXX           
  6819. XXXXXXXXX               
  6820. XXXXXXXXX           
  6821. XXXXXXXXX           
  6822. XXXXXXXXX           
  6823. XXXXXXXXX           
  6824. XXXXXXXXX           
  6825. XXXXXXXXX           
  6826. XXXXXXXXX           
  6827. XXXXXXXXX           
  6828. XXXXXXXXX           
  6829. XXXXXXXXX           
  6830. XXXXXXXXX           
  6831. XXXXXXXXX           
  6832. XXXXXXXXX           
  6833. XXXXXXXXX           
  6834. XXXXXXXXX           
  6835. XXXXXXXXX           
  6836. XXXXXXXXX           
  6837. XXXXXXXXX           
  6838. XXXXXXXXX           
  6839. XXXXXXXXX           
  6840. XXXXXXXXX           
  6841. XXXXXXXXX           
  6842. XXXXXXXXX            
  6843. XXXXXXXXX           !
  6844. XXXXXXXXX           "
  6845. XXXXXXXXX           #
  6846. XXXXXXXXX           $
  6847. XXXXXXXXX           %
  6848. XXXXXXXXX           &
  6849. XXXXXXXXX           '
  6850. XXXXXXXXX           (
  6851. XXXXXXXXX           )
  6852. XXXXXXXXX           *
  6853. XXXXXXXXX           
  6854. E   *
  6855. XXXXXXXXX           ,
  6856. XXXXXXXXX           -
  6857. XXXXXXXXX           .
  6858. XXXXXXXXX           /
  6859. XXXXXXXXX           0
  6860. XXXXXXXXX           1
  6861. XXXXXXXXX           2
  6862. XXXXXXXXX           3
  6863. XXXXXXXXX           4
  6864. XXXXXXXXX           5
  6865. XXXXXXXXX           6
  6866. XXXXXXXXX           7
  6867. XXXXXXXXX           8
  6868. XXXXXXXXX           9
  6869. XXXXXXXXX           :
  6870. XXXXXXXXX           ;
  6871. XXXXXXXXX           <
  6872. XXXXXXXXX           =
  6873. XXXXXXXXX           >
  6874. XXXXXXXXX           ?
  6875. XXXXXXXXX           @
  6876. XXXXXXXXX           A
  6877. XXXXXXXXX           B
  6878. XXXXXXXXX           C
  6879. XXXXXXXXX           D
  6880. XXXXXXXXX           E
  6881. XXXXXXXXX           F
  6882. XXXXXXXXX           G
  6883. XXXXXXXXX           H
  6884. XXXXXXXXX           I
  6885. XXXXXXXXX           J
  6886. XXXXXXXXX           K
  6887. XXXXXXXXX           L
  6888. XXXXXXXXX           M
  6889. XXXXXXXXX           N
  6890. XXXXXXXXX           O
  6891. XXXXXXXXX           P
  6892. XXXXXXXXX           Q
  6893. XXXXXXXXX           R
  6894. XXXXXXXXX           S
  6895. XXXXXXXXX           T
  6896. XXXXXXXXX           
  6897. E   *
  6898. XXXXXXXXX           V
  6899. XXXXXXXXX           W
  6900. XXXXXXXXX           X
  6901. XXXXXXXXX           Y
  6902. XXXXXXXXX           Z
  6903. XXXXXXXXX           [
  6904. XXXXXXXXX           \
  6905. XXXXXXXXX           ]
  6906. XXXXXXXXX           ^
  6907. XXXXXXXXX           _
  6908. XXXXXXXXX           `
  6909. XXXXXXXXX           a
  6910. XXXXXXXXX           b
  6911. XXXXXXXXX           c
  6912. XXXXXXXXX           d
  6913. XXXXXXXXX           e
  6914. XXXXXXXXX           f
  6915. XXXXXXXXX           g
  6916. XXXXXXXXX           h
  6917. XXXXXXXXX           i
  6918. XXXXXXXXX           j
  6919. XXXXXXXXX           k
  6920. XXXXXXXXX           l
  6921. XXXXXXXXX           m
  6922. XXXXXXXXX           n
  6923. XXXXXXXXX           o
  6924. XXXXXXXXX           p
  6925. XXXXXXXXX           q
  6926. XXXXXXXXX           r
  6927. XXXXXXXXX           s
  6928. XXXXXXXXX           t
  6929. XXXXXXXXX           u
  6930. XXXXXXXXX           v
  6931. XXXXXXXXX           w
  6932. XXXXXXXXX           x
  6933. XXXXXXXXX           y
  6934. XXXXXXXXX           z
  6935. XXXXXXXXX           {
  6936. XXXXXXXXX           |
  6937. XXXXXXXXX           }
  6938. XXXXXXXXX           ~
  6939. XXXXXXXXX           
  6940. E   *
  6941. XXXXXXXXX           
  6942. XXXXXXXXX           
  6943. XXXXXXXXX           
  6944. XXXXXXXXX           
  6945. XXXXXXXXX           
  6946. XXXXXXXXX           
  6947. XXXXXXXXX           
  6948. XXXXXXXXX           
  6949. XXXXXXXXX           
  6950. XXXXXXXXX           
  6951. XXXXXXXXX           
  6952. XXXXXXXXX           
  6953. XXXXXXXXX           
  6954. XXXXXXXXX           
  6955. XXXXXXXXX           
  6956. XXXXXXXXX           
  6957. XXXXXXXXX           
  6958. XXXXXXXXX           
  6959. XXXXXXXXX           
  6960. XXXXXXXXX           
  6961. XXXXXXXXX           
  6962. XXXXXXXXX           
  6963. XXXXXXXXX           
  6964. XXXXXXXXX           
  6965. XXXXXXXXX           
  6966. XXXXXXXXX           
  6967. XXXXXXXXX           
  6968. XXXXXXXXX           
  6969. XXXXXXXXX           
  6970. XXXXXXXXX           
  6971. XXXXXXXXX           
  6972. XXXXXXXXX           
  6973. XXXXXXXXX           
  6974. XXXXXXXXX           
  6975. XXXXXXXXX           
  6976. XXXXXXXXX           
  6977. XXXXXXXXX           
  6978. XXXXXXXXX           
  6979. XXXXXXXXX           
  6980. XXXXXXXXX           
  6981. XXXXXXXXX           
  6982. XXXXXXXXX           
  6983. E   *
  6984. XXXXXXXXX           
  6985. XXXXXXXXX           
  6986. XXXXXXXXX           
  6987. XXXXXXXXX           
  6988. XXXXXXXXX           
  6989. XXXXXXXXX           
  6990. XXXXXXXXX           
  6991. XXXXXXXXX           
  6992. XXXXXXXXX           
  6993. XXXXXXXXX           
  6994. XXXXXXXXX           
  6995. XXXXXXXXX           
  6996. XXXXXXXXX           
  6997. XXXXXXXXX           
  6998. XXXXXXXXX           
  6999. XXXXXXXXX           
  7000. XXXXXXXXX           
  7001. XXXXXXXXX           
  7002. XXXXXXXXX           
  7003. XXXXXXXXX           
  7004. XXXXXXXXX           
  7005. XXXXXXXXX           
  7006. XXXXXXXXX           
  7007. XXXXXXXXX           
  7008. XXXXXXXXX           
  7009. XXXXXXXXX           
  7010. XXXXXXXXX           
  7011. XXXXXXXXX           
  7012. XXXXXXXXX           
  7013. XXXXXXXXX           
  7014. XXXXXXXXX           
  7015. XXXXXXXXX           
  7016. XXXXXXXXX           
  7017. XXXXXXXXX           
  7018. XXXXXXXXX           
  7019. XXXXXXXXX           
  7020. XXXXXXXXX           
  7021. XXXXXXXXX           
  7022. XXXXXXXXX           
  7023. XXXXXXXXX           
  7024. XXXXXXXXX           
  7025. XXXXXXXXX           
  7026. E   *
  7027. XXXXXXXXX           
  7028. XXXXXXXXX           
  7029. XXXXXXXXX           
  7030. XXXXXXXXX           
  7031. XXXXXXXXX           
  7032. XXXXXXXXX           
  7033. XXXXXXXXX           
  7034. XXXXXXXXX           
  7035. XXXXXXXXX           
  7036. XXXXXXXXX           
  7037. XXXXXXXXX           
  7038. XXXXXXXXX           
  7039. XXXXXXXXX           
  7040. XXXXXXXXX           
  7041. XXXXXXXXX           
  7042. XXXXXXXXX           
  7043. XXXXXXXXX           
  7044. XXXXXXXXX           
  7045. XXXXXXXXX           
  7046. XXXXXXXXX           
  7047. XXXXXXXXX           
  7048. XXXXXXXXX           
  7049. XXXXXXXXX           
  7050. XXXXXXXXX           
  7051. XXXXXXXXX           
  7052. XXXXXXXXX           
  7053. XXXXXXXXX           
  7054. XXXXXXXXX           
  7055. XXXXXXXXX           
  7056. XXXXXXXXX           
  7057. XXXXXXXXX           
  7058. XXXXXXXXX           
  7059. XXXXXXXXX           
  7060. XXXXXXXXX           
  7061. XXXXXXXXX           
  7062. XXXXXXXXX           
  7063. XXXXXXXXX           
  7064. XXXXXXXXX           
  7065. XXXXXXXXX           
  7066. XXXXXXXXX           
  7067. XXXXXXXXX           
  7068. XXXXXXXXX           
  7069. E       
  7070. XXXXXXXXX           
  7071. XXXXXXXXX           
  7072. XXXXXXXXX           
  7073. XXXXXXXXX           
  7074. XXXXXXXXX           
  7075. XXXXXXXXX           
  7076. XXXXXXXXX           
  7077. XXXXXXXXX           
  7078. XXXXXXXXX           
  7079. XXXXXXXXX           
  7080. XXXXXXXXX           
  7081. XXXXXXXXX           
  7082. XXXXXXXXX           
  7083. XXXXXXXXX           
  7084. XXXXXXXXX           
  7085. XXXXXXXXX           
  7086. XXXXXXXXX           
  7087. XXXXXXXXX           
  7088. XXXXXXXXX           
  7089. XXXXXXXXX           
  7090. XXXXXXXXX           
  7091. XXXXXXXXX           
  7092. XXXXXXXXX           
  7093. XXXXXXXXX           
  7094. XXXXXXXXX           
  7095. XXXXXXXXX           
  7096. XXXXXXXXX           
  7097. XXXXXXXXX           
  7098. XXXXXXXXX           
  7099. XXXXXXXXX           
  7100. XXXXXXXXX           
  7101. XXXXXXXXX           
  7102. XXXXXXXXX           
  7103. XXXXXXXXX           
  7104. XXXXXXXXX           
  7105. XXXXXXXXX           
  7106. XXXXXXXXX           
  7107. XXXXXXXXX           
  7108. XXXXXXXXX           
  7109. XXXXXXXXX           
  7110. XXXXXXXXX           
  7111. XXXXXXXXX           
  7112. XXXXXXXXX           ~
  7113. XXXXXXXXX           
  7114. XXXXXXXXX           
  7115. XXXXXXXXX           
  7116. XXXXXXXXX           
  7117. XXXXXXXXX           
  7118.  FORMAT
  7119.     RELEASE WINDOW W1
  7120.     CLEAR TYPEAHEAD
  7121.     SET ESCAPE ON 
  7122.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  7123.                 DBF(), MESSAGE()
  7124.     ***check for number of records ...limit = 50 
  7125.     n_rec = 0            &&  number of records
  7126.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  7127.     USE PATCHARG.DBF IN B ORDER TAG 
  7128.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  7129.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  7130.     SELECT A    && use paymain
  7131.     n_rec = RECCOUNT()
  7132.     IF n_rec > 50 
  7133.        ** setup aray to hold id#s to delete
  7134.        DECLARE d_aray[n_rec]
  7135.        i_dex =1
  7136.        GO TOP 
  7137.        SCAN WHILE i_dex <= (n_rec -50)
  7138.           ** put id#s in aray
  7139.           d_aray[i_dex] = A->CUSTNO
  7140.           DELETE
  7141.           i_dex = i_dex +1
  7142.        ENDSCAN
  7143.           i_dex =1
  7144.           SELECT B       && use patcharg
  7145. XXXXXXXXX           
  7146. XXXXXXXXX           
  7147. XXXXXXXXX           
  7148. XXXXXXXXX           
  7149. XXXXXXXXX           
  7150. XXXXXXXXX           
  7151. XXXXXXXXX           
  7152. XXXXXXXXX               
  7153. XXXXXXXXX           
  7154. XXXXXXXXX           
  7155. XXXXXXXXX           
  7156. XXXXXXXXX           
  7157. XXXXXXXXX           
  7158. XXXXXXXXX           
  7159. XXXXXXXXX           
  7160. XXXXXXXXX           
  7161. XXXXXXXXX           
  7162. XXXXXXXXX           
  7163. XXXXXXXXX           
  7164. XXXXXXXXX           
  7165. XXXXXXXXX           
  7166. XXXXXXXXX           
  7167. XXXXXXXXX           
  7168. XXXXXXXXX           
  7169. XXXXXXXXX           
  7170. XXXXXXXXX           
  7171. XXXXXXXXX           
  7172. XXXXXXXXX           
  7173. XXXXXXXXX           
  7174. XXXXXXXXX           
  7175. XXXXXXXXX            
  7176. XXXXXXXXX           !
  7177. XXXXXXXXX           "
  7178. XXXXXXXXX           #
  7179. XXXXXXXXX           $
  7180. XXXXXXXXX           %
  7181. XXXXXXXXX           &
  7182. XXXXXXXXX           '
  7183. XXXXXXXXX           (
  7184. XXXXXXXXX           )
  7185. XXXXXXXXX           *
  7186. XXXXXXXXX           
  7187. E   *
  7188. XXXXXXXXX           ,
  7189. XXXXXXXXX           -
  7190. XXXXXXXXX           .
  7191. XXXXXXXXX           /
  7192. XXXXXXXXX           0
  7193. XXXXXXXXX           1
  7194. XXXXXXXXX           2
  7195. XXXXXXXXX           3
  7196. XXXXXXXXX           4
  7197. XXXXXXXXX           5
  7198. XXXXXXXXX           6
  7199. XXXXXXXXX           7
  7200. XXXXXXXXX           8
  7201. XXXXXXXXX           9
  7202. XXXXXXXXX           :
  7203. XXXXXXXXX           ;
  7204. XXXXXXXXX           <
  7205. XXXXXXXXX           =
  7206. XXXXXXXXX           >
  7207. XXXXXXXXX           ?
  7208. XXXXXXXXX           @
  7209. XXXXXXXXX           A
  7210. XXXXXXXXX           B
  7211. XXXXXXXXX           C
  7212. XXXXXXXXX           D
  7213. XXXXXXXXX           E
  7214. XXXXXXXXX           F
  7215. XXXXXXXXX           G
  7216. XXXXXXXXX           H
  7217. XXXXXXXXX           I
  7218. XXXXXXXXX           J
  7219. XXXXXXXXX           K
  7220. XXXXXXXXX           L
  7221. XXXXXXXXX           M
  7222. XXXXXXXXX           N
  7223. XXXXXXXXX           O
  7224. XXXXXXXXX           P
  7225. XXXXXXXXX           Q
  7226. XXXXXXXXX           R
  7227. XXXXXXXXX           S
  7228. XXXXXXXXX           T
  7229. XXXXXXXXX           
  7230. E   *
  7231. XXXXXXXXX           V
  7232. XXXXXXXXX           W
  7233. XXXXXXXXX           X
  7234. XXXXXXXXX           Y
  7235. XXXXXXXXX           Z
  7236. XXXXXXXXX           [
  7237. XXXXXXXXX           \
  7238. XXXXXXXXX           ]
  7239. XXXXXXXXX           ^
  7240. XXXXXXXXX           _
  7241. XXXXXXXXX           `
  7242. XXXXXXXXX           a
  7243. XXXXXXXXX           b
  7244. XXXXXXXXX           c
  7245. XXXXXXXXX           d
  7246. XXXXXXXXX           e
  7247. XXXXXXXXX           f
  7248. XXXXXXXXX           g
  7249. XXXXXXXXX           h
  7250. XXXXXXXXX           i
  7251. XXXXXXXXX           j
  7252. XXXXXXXXX           k
  7253. XXXXXXXXX           l
  7254. XXXXXXXXX           m
  7255. XXXXXXXXX           n
  7256. XXXXXXXXX           o
  7257. XXXXXXXXX           p
  7258. XXXXXXXXX           q
  7259. XXXXXXXXX           r
  7260. XXXXXXXXX           s
  7261. XXXXXXXXX           t
  7262. XXXXXXXXX           u
  7263. XXXXXXXXX           v
  7264. XXXXXXXXX           w
  7265. XXXXXXXXX           x
  7266. XXXXXXXXX           y
  7267. XXXXXXXXX           z
  7268. XXXXXXXXX           {
  7269. XXXXXXXXX           |
  7270. XXXXXXXXX           }
  7271. XXXXXXXXX           ~
  7272. XXXXXXXXX           
  7273. E   *
  7274. XXXXXXXXX           
  7275. XXXXXXXXX           
  7276. XXXXXXXXX           
  7277. XXXXXXXXX           
  7278. XXXXXXXXX           
  7279. XXXXXXXXX           
  7280. XXXXXXXXX           
  7281. XXXXXXXXX           
  7282. XXXXXXXXX           
  7283. XXXXXXXXX           
  7284. XXXXXXXXX           
  7285. XXXXXXXXX           
  7286. XXXXXXXXX           
  7287. XXXXXXXXX           
  7288. XXXXXXXXX           
  7289. XXXXXXXXX           
  7290. XXXXXXXXX           
  7291. XXXXXXXXX           
  7292. XXXXXXXXX           
  7293. XXXXXXXXX           
  7294. XXXXXXXXX           
  7295. XXXXXXXXX           
  7296. XXXXXXXXX           
  7297. XXXXXXXXX           
  7298. XXXXXXXXX           
  7299. XXXXXXXXX           
  7300. XXXXXXXXX           
  7301. XXXXXXXXX           
  7302. XXXXXXXXX           
  7303. XXXXXXXXX           
  7304. XXXXXXXXX           
  7305. XXXXXXXXX           
  7306. XXXXXXXXX           
  7307. XXXXXXXXX           
  7308. XXXXXXXXX           
  7309. XXXXXXXXX           
  7310. XXXXXXXXX           
  7311. XXXXXXXXX           
  7312. XXXXXXXXX           
  7313. XXXXXXXXX           
  7314. XXXXXXXXX           
  7315. XXXXXXXXX           
  7316. E   *
  7317. XXXXXXXXX           
  7318. XXXXXXXXX           
  7319. XXXXXXXXX           
  7320. XXXXXXXXX           
  7321. XXXXXXXXX           
  7322. XXXXXXXXX           
  7323. XXXXXXXXX           
  7324. XXXXXXXXX           
  7325. XXXXXXXXX           
  7326. XXXXXXXXX           
  7327. XXXXXXXXX           
  7328. XXXXXXXXX           
  7329. XXXXXXXXX           
  7330. XXXXXXXXX           
  7331. XXXXXXXXX           
  7332. XXXXXXXXX           
  7333. XXXXXXXXX           
  7334. XXXXXXXXX           
  7335. XXXXXXXXX           
  7336. XXXXXXXXX           
  7337. XXXXXXXXX           
  7338. XXXXXXXXX           
  7339. XXXXXXXXX           
  7340. XXXXXXXXX           
  7341. XXXXXXXXX           
  7342. XXXXXXXXX           
  7343. XXXXXXXXX           
  7344. XXXXXXXXX           
  7345. XXXXXXXXX           
  7346. XXXXXXXXX           
  7347. XXXXXXXXX           
  7348. XXXXXXXXX           
  7349. XXXXXXXXX           
  7350. XXXXXXXXX           
  7351. XXXXXXXXX           
  7352. XXXXXXXXX           
  7353. XXXXXXXXX           
  7354. XXXXXXXXX           
  7355. XXXXXXXXX           
  7356. XXXXXXXXX           
  7357. XXXXXXXXX           
  7358. XXXXXXXXX           
  7359. E   *
  7360. XXXXXXXXX           
  7361. XXXXXXXXX           
  7362. XXXXXXXXX           
  7363. XXXXXXXXX           
  7364. XXXXXXXXX           
  7365. XXXXXXXXX           
  7366. XXXXXXXXX           
  7367. XXXXXXXXX           
  7368. XXXXXXXXX           
  7369. XXXXXXXXX           
  7370. XXXXXXXXX           
  7371. XXXXXXXXX           
  7372. XXXXXXXXX           
  7373. XXXXXXXXX           
  7374. XXXXXXXXX           
  7375. XXXXXXXXX           
  7376. XXXXXXXXX           
  7377. XXXXXXXXX           
  7378. XXXXXXXXX           
  7379. XXXXXXXXX           
  7380. XXXXXXXXX           
  7381. XXXXXXXXX           
  7382. XXXXXXXXX           
  7383. XXXXXXXXX           
  7384. XXXXXXXXX           
  7385. XXXXXXXXX           
  7386. XXXXXXXXX           
  7387. XXXXXXXXX           
  7388. XXXXXXXXX           
  7389. XXXXXXXXX           
  7390. XXXXXXXXX           
  7391. XXXXXXXXX           
  7392. XXXXXXXXX           
  7393. XXXXXXXXX           
  7394. XXXXXXXXX           
  7395. XXXXXXXXX           
  7396. XXXXXXXXX           
  7397. XXXXXXXXX           
  7398. XXXXXXXXX           
  7399. XXXXXXXXX           
  7400. XXXXXXXXX           
  7401. XXXXXXXXX           
  7402. E       
  7403. XXXXXXXXX           
  7404. XXXXXXXXX           
  7405. XXXXXXXXX           
  7406. XXXXXXXXX           
  7407. XXXXXXXXX           
  7408. XXXXXXXXX           
  7409. XXXXXXXXX           
  7410. XXXXXXXXX           
  7411. XXXXXXXXX           
  7412. XXXXXXXXX           
  7413. XXXXXXXXX           
  7414. XXXXXXXXX           
  7415. XXXXXXXXX           
  7416. XXXXXXXXX           
  7417. XXXXXXXXX           
  7418. XXXXXXXXX           
  7419. XXXXXXXXX           
  7420. XXXXXXXXX           
  7421. XXXXXXXXX           
  7422. XXXXXXXXX           
  7423. XXXXXXXXX           
  7424. XXXXXXXXX           
  7425. XXXXXXXXX           
  7426. XXXXXXXXX           
  7427. XXXXXXXXX           
  7428. XXXXXXXXX           
  7429. XXXXXXXXX           
  7430. XXXXXXXXX           
  7431. XXXXXXXXX           
  7432. XXXXXXXXX           
  7433. XXXXXXXXX           
  7434. XXXXXXXXX           
  7435. XXXXXXXXX           
  7436. XXXXXXXXX           
  7437. XXXXXXXXX           
  7438. XXXXXXXXX           
  7439. XXXXXXXXX           
  7440. XXXXXXXXX           
  7441. XXXXXXXXX           
  7442. XXXXXXXXX           
  7443. XXXXXXXXX           
  7444. XXXXXXXXX           
  7445. XXXXXXXXX           
  7446. XXXXXXXXX           
  7447. XXXXXXXXX           
  7448. XXXXXXXXX           
  7449. XXXXXXXXX           
  7450. XXXXXXXXX           
  7451.  FORMAT
  7452.     RELEASE WINDOW W1
  7453.     CLEAR TYPEAHEAD
  7454.     SET ESCAPE ON 
  7455.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  7456.                 DBF(), MESSAGE()
  7457.     ***check for number of records ...limit = 50 
  7458.     n_rec = 0            &&  number of records
  7459.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  7460.     USE PATCHARG.DBF IN B ORDER TAG 
  7461.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  7462.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  7463.     SELECT A    && use paymain
  7464.     n_rec = RECCOUNT()
  7465.     IF n_rec > 50 
  7466.        ** setup aray to hold id#s to delete
  7467.        DECLARE d_aray[n_rec]
  7468.        i_dex =1
  7469.        GO TOP 
  7470.        SCAN WHILE i_dex <= (n_rec -50)
  7471.           ** put id#s in aray
  7472.           d_aray[i_dex] = A->CUSTNO
  7473.           DELETE
  7474.           i_dex = i_dex +1
  7475.        ENDSCAN
  7476.           i_dex =1
  7477.           SELECT B       && use patcharg
  7478. E   T
  7479. E   T
  7480. E       
  7481.         
  7482. XXXXXXXXX           
  7483. XXXXXXXXX           
  7484. XXXXXXXXX           
  7485. XXXXXXXXX           
  7486.  FORMAT
  7487.     RELEASE WINDOW W1
  7488.     CLEAR TYPEAHEAD
  7489.     SET ESCAPE ON 
  7490.     ON ERROR DO Err_proc WITH INKEY(), PROGRAM(), LINENO(), ERROR(),;
  7491.                 DBF(), MESSAGE()
  7492.     ***check for number of records ...limit = 50 
  7493.     n_rec = 0            &&  number of records
  7494.     USE PATMAIN.DBF IN A ORDER TAG CUSTNO
  7495.     USE PATCHARG.DBF IN B ORDER TAG 
  7496.     USE PATPAY.DBF IN C ORDER TAG CUSTNO
  7497.     USE HISTORY.DBF IN D ORDER TAG CUSTNO
  7498.     SELECT A    && use paymain
  7499.     n_rec = RECCOUNT()
  7500.     IF n_rec > 50 
  7501.        ** setup aray to hold id#s to delete
  7502.        DECLARE d_aray[n_rec]
  7503.        i_dex =1
  7504.        GO TOP 
  7505.        SCAN WHILE i_dex <= (n_rec -50)
  7506.           ** put id#s in aray
  7507.           d_aray[i_dex] = A->CUSTNO
  7508.           DELETE
  7509.           i_dex = i_dex +1
  7510.        ENDSCAN
  7511.           i_dex =1
  7512.           SELECT B       && use patcharg
  7513.